Skip to content
Discussion options

You must be logged in to vote

This isn't something the proxy can fix. The frontend is a bundled SPA, and the base path gets baked into the JS at build time. So the HTML loads (that's your "sync-in" text), then it asks for /assets/chunk-xxx.js — absolute, from the root — and your proxy has nothing there. Rewriting response bodies with nginx sub_filter can paper over the HTML, but the chunk URLs the router builds at runtime will keep breaking, and so will the API calls.

You're right that this needs a base URL option on the server side. Without one, the two working setups are:

Dedicated subdomain, which you already found works — that's the supported path today.

Or a dedicated port/root on an internal host, proxied at the…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@slaxeee
Comment options

Answer selected by johaven
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants