SSR with server configurable publicPath #17881
Unanswered
m0ppers
asked this question in
CLI - SSR mode
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We have a quasar application that works in ssr mode and is deployed multiple times in multiple configurations to our clients.
we are hosting the app in differing subpaths:
Customer 1: /app-customer-1/
Customer 2: /app-customer-2/
for that we have right now a very simple mechanism in our quasar config:
now this works great but unfortunately it is at build time. Our applications are supposed to be fixed and long running (i.e. multiple years untouched). However in reality we might have to move an app from one subpath to another.
now the only possibility to do this is to rebuild the app from scratch (and pray that we can reproduce the exact state we had during initial build time).
I thought that maybe we could inject some environment variable into the server and just restart it but there is - from what I see - no possibility at all for something like this. I also had a look at this plugin https://www.npmjs.com/package/vite-plugin-dynamic-base but it didn't work.
Is there something to solve our usecase?
Something similar is this discussion here: #14984 but I think this only works with a history mode router
Beta Was this translation helpful? Give feedback.
All reactions