Dynamic/relative asset paths #603
-
Good day! Hope you guys are all doing well. I have a question in regards to dynamic/relative asset paths. We are using vite-plugin-ssr in combination with an express server, meaning we are using SSR. Now, our software is built once and distributed to various environments. Some of which are changing the express router path and mount everything underneath a different path (instead of root) like During the build process we also run Next I tried to use the experimental After that I figured I check out the
changing the
results in a stack trace (I am aware that my change is probably not something that was expected :D).
Is there anything I forgot to try or is there something that we can configure that might help with our setup? Thanks very much and have a great day! Cheers, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
How exactly would that help and how would you use it? Can you give an example of assets for which you want to have a relative base and why? A challenge with relative paths is that they depend on the current URL. That's why VPS doesn't support them for now. (I'm not sure how/if VPS can support them.) |
Beta Was this translation helpful? Give feedback.
How exactly would that help and how would you use it? Can you give an example of assets for which you want to have a relative base and why?
A challenge with relative paths is that they depend on the current URL. That's why VPS doesn't support them for now. (I'm not sure how/if VPS can support them.)