Remix V2 on Vite: Do we lose out on any vite features by not starting our custom server with vite dev
?
#7995
-
QuestionDo we lose out on any Background ContextI noticed in the Remix Vite upgrade docs that you could start your Remix Dev server using vite like so: package.json
Or you could continue starting your dev server like this (assuming you are using custom server, like express template which exposes
Remix App Server you can use But they recommend if you're using remix with a custom server (ex: express template which exposes server.js) to call server directly: https://remix.run/docs/en/main/future/vite#migrating-from-a-custom-server References
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Nope. If you are delegating assets and Remix request handler stuff to Vite like shown in the docs, then you are only limited by whatever you choose as your server (e.g. Express). Note that in this case, any |
Beta Was this translation helpful? Give feedback.
Nope. If you are delegating assets and Remix request handler stuff to Vite like shown in the docs, then you are only limited by whatever you choose as your server (e.g. Express). Note that in this case, any
vite.config.ts
fields that only affect the Vite server won't be relevant since you aren't running the Vite server, but any features provided by those options should be implementable in your own custom server too.