Cloudflare Pages

Deploying the project to .

To deploy to , connect your Github account to Cloudflare.

Create Project

  • Create a new Pages project with the following Build & deployment settings:
KeyValue
Build commandnpx pnpm i --store=node_modules/.pnpm-store && npm run build
Build output directory/dist/client
Root directory/

The Cloudflare build configuration section should look like this:

Cloudflare pages settings

pnpm is used in this project, so we'll have to bypass npm i on Cloudflare by setting an environment variable in the pages project:

NPM_FLAGS=--version

Done!

Deploy by pushing your commits to Github!