I am trying to use the new routes resolver by adding this in my nuxt.config.js
:
prismic: {
endpoint: process.env.PRISMIC_URL,
apiOptions: {
accessToken: process.env.PRISMIC_API_KEY,
routes: [
{
type: 'page',
path: '/:lang/:uid'
}
]
},
disableGenerator: false
}
It doesn't seem to work well though since I keep getting error 401 (Unexpected status code [401] on URL ...
and Failed to init Prismic API, preventing app fatal error.
).
How do I fix this?