I was able to have Nuxt routes working with the default router property. However, creating custom routes with the @nuxtjs/router module seems incompatible with Layer0? (When enabled, all routes are returning 404 errors).
For reference, here is an example router config using @nuxtjs/router
:
// router.js
import Vue from 'vue'
import Router from 'vue-router'
import MyPage from '~/components/my-page'
Vue.use(Router)
export function createRouter() {
return new Router({
mode: 'history',
routes: [
{
path: '/',
component: MyPage
beforeEnter: (to, from, next) => {
// ...
}
}
]
})
}
Is there any recommended approach or code example on how to use similar config with Nuxt.js and Layer0?