Static GitHub Issues

[2963] Update router base dynamically

prev: Is SSR useless if the request url is not sure?
next: Nuxt amp example: should not remove all script tags

Hello,

I'm using Nuxt to build an application that can be proxied by another service, the exposition path of the application being dynamic. Is it possible to update router base property once nuxt app is generated ?

I have tried in the nuxtServerInit action of the store the following code, but it doesn't work :

app.router.options.base = '/mypath/'

I have tried updating routing properties of object in the plugins/index.js export function too, but had no success.

Thanks.

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c2570">#c2570</a>)</em></sub></div>