Link Resolver

We recommend you use the more modern Route Resolver whenever possible over the Link Resolver. We now only recommend to use the Link Resolver as an escape hatch.

You can make the module use a Link Resolver. To do so, export one from ~/prismic/linkResolver (~/app/prismic/linkResolver on Nuxt 3):

~/prismic/linkResolver.[jt
export default (doc) => {
    if (doc.type === 'page') {
        return `/${doc.uid}`
    }
}
The default path (~/prismic/linkResolver, ~/app/prismic/linkResolver on Nuxt 3) can be changed with the linkResolver option. See the module configuration ->