You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to test this scenario with Vite SSR but I had no success.
I have an app that is served (nginx) under multiple domain, and some domain want to host the app under base href because they already are hosting something under root.
Ex:
- a.com/x
- b.com/y
- c.com
- d.com/z
Since all the traffic goes to the same app and the base need to passed as config for createServer Vite serve resources (js/css etc) with only one fixed base href, each html outputted to the client need to have his own base href in the html.
Is there a way to resolve this at runtime maybe on the route level?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi.
I'm trying to test this scenario with Vite SSR but I had no success.
I have an app that is served (nginx) under multiple domain, and some domain want to host the app under base href because they already are hosting something under root.
Ex:
- a.com/x
- b.com/y
- c.com
- d.com/z
Since all the traffic goes to the same app and the base need to passed as config for
createServer
Vite serve resources (js/css etc) with only one fixed base href, each html outputted to the client need to have his own base href in the html.Is there a way to resolve this at runtime maybe on the route level?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions