S
SolidJS3mo ago
Nihan

How do you use rewrite in production?

Hello, I have a simple solid start app. It has a backend server written using nestjs. I was using vite proxy to rewrite /api routes to the backend url. Pushed the app to production today in digital ocean. Took a while for my dumbass to figure out that vite server.proxy doesn't work after building the app. It's only for the dev server. So how do you actually use a rewrite here on solid start ? Thanks for reading..
1 Reply
Madaxen86
Madaxen863mo ago
Here’s an example which adds a additional route to implement websockets. You can probably adjust it to use your backend on the api route. (I have not tested this myself. This is from the creator of vinxi)
No description
Want results from more Discord servers?
Add your server