-
I'm not sure if I should ask about it here or in Cloudflare Discord but it feels a bit more relevant here. I have a basic Remix (Vite) app created with according to Cloudflare docs I should be able to create |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
When using Vite, in development wrangler/workerd is not used as runtime so your CF middlewares will not be called. However when deployed to production because it runs in CF runtime it should work. The Vite team is working on a way to allows apps/frameworks to change the runtime so instead of Node it can use workerd and run in a production-like env locally. |
Beta Was this translation helpful? Give feedback.
When using Vite, in development wrangler/workerd is not used as runtime so your CF middlewares will not be called. However when deployed to production because it runs in CF runtime it should work.
The Vite team is working on a way to allows apps/frameworks to change the runtime so instead of Node it can use workerd and run in a production-like env locally.