Launch
Cloudflare
Deploy your app with automatic builds on every push.
Cloudflare Pages is the guide below. VueStarter also runs on Vercel, Netlify, a VPS, or anywhere Nuxt runs.
Create a Pages Project
- Open the Cloudflare dashboard
- Click Compute in the sidebar
- Click Workers & Pages
- Click Create Application
- Click the Get started link under "Looking to deploy Pages?"
- Click Import from existing Git repository
- Select your GitHub account, then select your repository
Configure Build Settings and Environment Variables
- Framework preset: Nuxt.js
- Build command:
npm run build - Build output directory:
dist
Under Environment Variables, add:
SUPABASE_URL— from your.envSUPABASE_KEY— from your.envSUPABASE_SECRET_KEY— from your.env
Deploy
Click Save and Deploy. Every future push to master triggers a redeploy.
Secure Your Environment Variables
- Open your Pages project in the Cloudflare dashboard
- Go to Settings → Variables and Secrets
- For each variable, click Edit, change the type from Text to Secret, and click Save
Update Supabase Auth URLs
- Copy your production URL from the Cloudflare Pages dashboard (e.g.
https://your-project.pages.dev) - In the Supabase dashboard → Authentication → URL Configuration:
- Update the Site URL from
http://localhost:3000to your production URL - Add
https://your-project.pages.dev/auth/callbackto the Redirect URLs
- Update the Site URL from
Verify Production
- Visit your production URL
- Sign up with a new account
- Complete the onboarding flow
- Confirm the dashboard loads and the sidebar works
- Push a small change to your repo and confirm Cloudflare auto-redeploys
Custom Domain (Optional)
- Go to your Cloudflare Pages project → Custom domains
- Add your domain and follow the DNS setup instructions
- Update the Site URL and Redirect URLs in Supabase to match your custom domain