Replies: 3 comments
|
Yeah, set For a dockerised TanStack Start app behind a proxy at some subpath, that's exactly the case it covers: docker run -e NITRO_APP_BASE_URL=/my-subpath/ your-imageKeep the leading and trailing slashes ( |
|
@apoorva-01 Are you sure? My testing seems to indicate that it only influences the |
|
Setting it at build time works, but the env var isn't build-only. The catch is that "baseURL" is really two different things here. Server side: Client side: this is what breaks a TanStack Start (or any Vite) app. Vite's For "one image, mounted at any subpath decided at runtime":
|
Uh oh!
There was an error while loading. Please reload this page.
Is it possible to set the baseURL at runtime via an environment variable?
My use case is creating a TanStack Start app that can be dockerised and then mounted behind a proxy at any subpath
All reactions