Hello!
I keep getting this warning message on all Nuxt projects using the @nuxtjs/prismic module:
WARN [vue-router] Duplicate named routes definition: { name: "prismic-preview", path: "/preview" }
Curently my API configuration in nuxt.config.js leaves the preview's default value to true, and previews work properly. I did not create a separate preview route (/pages/preview.vue), so I have no idea why the default configuration would create this warning. Is there anything I can do to avoid it?
// in nuxt config
prismic: {
endpoint: apiEndpoint || '',
modern: true,
apiOptions: {
routes: [
{
type: 'homepage',
path: '/',
},
],
linkResolver(doc) {
return null
},
},
},
Thank you for your time! Please let me know if this has happened to anyone else.