R
Railway•10mo ago
Niborium

SolidJS / solidrouter

in vercel i have like this in my vercel.json for rewrites/routing (React + react router): { "rewrites": [{ "source": "/(.*)", "destination": "/" }] } Do you know if there is something similar for railway.app and for solidjs? (solid router). SPA application. https://docs.solidjs.com/guides/how-to-guides/routing-in-solid/solid-router
Solution:
railway isn't designed for frontend hosting, so this would be something your app is responsible for, my recommendation would be to use caddy, I have an example for react though, it would be very similar to what you need to to. https://github.com/brody192/create-react-app-starter...
Jump to solution
5 Replies
Percy
Percy•10mo ago
Project ID: N/A
Niborium
NiboriumOP•10mo ago
N/A
Solution
Brody
Brody•10mo ago
railway isn't designed for frontend hosting, so this would be something your app is responsible for, my recommendation would be to use caddy, I have an example for react though, it would be very similar to what you need to to. https://github.com/brody192/create-react-app-starter
Niborium
NiboriumOP•10mo ago
okey thanks for quick reply 😛 then i'm better of hosting our frontend on vercel
Brody
Brody•10mo ago
sounds good
Want results from more Discord servers?
Add your server