Home

Issue: 2963

Update router base dynamically

[issue link]

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.

This question is available on Nuxt.js community (#c2570)