Caleb Williams
Caleb Williams

Reputation: 23

Issues running svelte build using cloudflare and vite: is not recognized as an internal or external command

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.

Upvotes: 1

Views: 236

Answers (1)

Mikko Ohtamaa
Mikko Ohtamaa

Reputation: 83768

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

Potential solutions

Upvotes: 1

Related Questions