Hi,
there is a bug with cloudflare pages and remix js vite
when you set environment variables inside cloudflare dashboard you get following output
06:37:13.340 > build
06:37:13.340 > npx remix vite:build
06:37:13.340
06:37:14.051 npm ERR! could not determine executable to run
there was also an issue with npx wrangler types
command but it was solved with installing wrangler
as dev depn.
tried this
./node_modules/.bin/remix vite:build
and npx remix vite:build
when environment variables are removed it works fine