skyrpex/laravel-nuxt-js

[ERROR| Help] Change base route url from nuxt.config.js

livevasiliy opened this issue · 1 comments

Hello @skyrpex !

I want change base route for nuxt app via configuration field in nuxt.config.js like this:

router: {
  base: '/admin/',
},

But after change this settings I get error 404 _nuxt directory.
I want startup my nuxt app with next route: localhost:8000/admin/

Simple add:

{
    router: {
        extendRoutes(routes, resolve) {
            routes.forEach((route) => {
                route.path = '/admin' + route.path;
            });

            return routes;
        }
    }
}