Custom Preview Page

You can override the default preview page by creating a page at the /preview route:

~/pages/preview.vue
<template>
    <p>Loading Prismic preview...</p>
</template>

<script setup>
// The following code is mandatory for starting previews when entering this page
usePrismicPreview()
</script>
The default route (/preview) can be changed with the preview option. See the module configuration ->