1

I'm attempting to build a SvelteKit that deploys with Cloudflare using this adaptor https://kit.svelte.dev/docs/adapter-cloudflare

However when I run "CF_PAGES=1 vite build" I get the following error "'CF_PAGES' is not recognized as an internal or external command, operable program or batch file."

I suspect I may be missing an environment variable.

Mikko Ohtamaa
  • 82,057
  • 50
  • 264
  • 435

1 Answers1

1

The cause is that you are attempting to run the UNIX command on Microsoft Windows.

Potential solutions

Mikko Ohtamaa
  • 82,057
  • 50
  • 264
  • 435