Deploy your Nuxt Application to Cloudflare infrastructure.
Integration with Cloudflare Pages is possible with zero configuration, learn more.
If you use the GitHub/GitLab integration with Cloudflare Pages, no configuration is required. Pushing to your repository will automatically build your project and deploy it.
To leverage sever-side rendering on the edge, set the build command to:
To statically generate your website, set the build command to:
Alternatively, you can use wrangler to upload your project to Cloudflare.
In this case, you will have to set the preset manually.
- Build your project for Cloudflare Pages:Terminal
npx nuxi build --preset=cloudflare_pages
- Deploy, it will ask you to create a project for the first time:Terminal
wrangler pages deploy dist/