My previews are working, but something seems fishy with the link-resolver
settings.
If I use the default /preview
link resolver URL and click to preview a content entry, the in-between page while it loads the preview is a weird version of our default Nuxt template.
If I add in a pages/preview.vue
file that specifies different content and layout, it has no effect on that in-between "preview loading" page.
Here's the weird part:
If I change my settings in prismic so that the link-resolver is prismic-preview
, and create a pages/prismic-preview.vue
file that has the same content as the preview.vue
file mentioned above, it uses my custom page. But this ONLY works if I DON'T add this to my nuxt.config
:
prismic: {
...
preview: '/prismic-preview'
},
In other words, without adding that line it is still defaulting to /preview
in the Nuxt config. Yet it serves the correct prismic-preview
route with my custom layout. It also statically compiles a /preview
page, but AFAIK that isn't used anywhere..
What's happening here?