Replies: 1 comment
-
This is not true - there are multiple official adapters to allow you to run in node, cloudflare, etc. Here's the template for a simple express server: https://github.com/remix-run/react-router-templates/tree/main/node-custom-server. If you ask around in the discord server, community folks have made similar adapters for use with far node |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently you have to use the package
@react-router/serve
to serve a react-router website. This adds complexity, especially in Docker images that now have to install this additional package.Instead react-router could simply generate a server.js file in the output server directory to start a server.
Here is how a Vite plugin that does the following could be easily implemented:
Beta Was this translation helpful? Give feedback.
All reactions