Skip to main content

Deploying to Cloudflare Pages

The process for deploying to Cloudflare Pages is slightly different since it doesn't support using Next.js as a server-side app. So we'll need to export the app as a static site.

When deploying to Cloudflare Pages, make sure to use the static branch of the repository and use yarn build for your build command. This includes a few minor modifications to ensure the app works with static exports. Please be aware that image optimizations will not work with static exports as they require use of next/image's server capabilities.

Cloudflare Pages branch

Cloudflare Pages configuration