For Remix.js what is the wrangler deploy entry point?

After setting up Remix.js app using npm create cloudflare@latest -- my-remix-app --framework=remix and wrangler deploy I get this error. I assumed Remix's build/server/index.js would be it. Also tried functions/[[path]].ts to no luck. Thanks!
No description
1 Reply
daniel
danielOP2mo ago
Solved. For posterity, the issue was running npx wrangler ... instead of its equivalent via the npm context of the application. Given the wrangler.toml my instinct was that npx wrangler ... should consume and effectively operate identically to if it was run via npm run... but *clearly not *. Maybe a DX or docs improvement to be had here
"scripts": {
"build": "remix vite:build",
"deploy": "npm run build && wrangler pages deploy",
...
"scripts": {
"build": "remix vite:build",
"deploy": "npm run build && wrangler pages deploy",
...
Want results from more Discord servers?
Add your server