How to deploy Remix + Vite anywhere? #8127
-
Hi, I tried changing the build output directory to Is there any guide on how to deploy Remix/Vite app anywhere? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 9 replies
-
Your server must run Worth mentioning that these paths will change in a next release (#8077):
|
Beta Was this translation helpful? Give feedback.
-
The Remix Vite plugin doesn't yet work on Cloudflare and Vercel, first remember that the Vite plugin is still unstable, so things like this are expected. Cloudflare is not supported because Vite itself has issues with Cloudflare, the team is working on this. Vercel is not supported because when deploying to Vercel they replace the |
Beta Was this translation helpful? Give feedback.
-
I expect Remix team has some plan to provide out-of-the-box experience in https://github.com/orgs/remix-run/projects/5/views/1?pane=issue&itemId=43815635 and https://github.com/orgs/remix-run/projects/5/views/1?pane=issue&itemId=43814919, but if you like to explore yourself, then I think underlying tools are available at least for simple deployment (not something like splitting server build #7118). I made a quick demo to deploy Remix Vite app to Vercel Edge, Vercel Serverless, and Cloudflare Workers:
The idea is that, for Vercel, you can use For cloudflare workers, I made a separate post in #8099 to support workerd runtime api during development.
|
Beta Was this translation helpful? Give feedback.
-
Is there an example for Remix + Vite deployment on Netlify? |
Beta Was this translation helpful? Give feedback.
-
To add to the original question – with Vite now stable, the story for deploying to Vercel is still pretty unclear. Would be great to understand the recommended approach 🙂 |
Beta Was this translation helpful? Give feedback.
-
Has anyone here ran into the "Error: Script startup exceeded CPU time limit" when deploying to Cloudflare? Currently hitting a hard wall debugging/trying to diagnose or find useful information online. |
Beta Was this translation helpful? Give feedback.
I expect Remix team has some plan to provide out-of-the-box experience in https://github.com/orgs/remix-run/projects/5/views/1?pane=issue&itemId=43815635 and https://github.com/orgs/remix-run/projects/5/views/1?pane=issue&itemId=43814919, but if you like to explore yourself, then I think underlying tools are available at least for simple deployment (not something like splitting server build #7118).
I made a quick demo to deploy Remix Vite app to Vercel Edge, Vercel Serverless, and Cloudflare Workers: