diff --git a/src/index.js b/src/index.js index 4502bd4..291a027 100644 --- a/src/index.js +++ b/src/index.js @@ -22,7 +22,7 @@ function install(moduleOptions) { src: path.join(__dirname, 'templates/pages/preview.vue'), }); this.extendRoutes((routes, resolve) => { - routes.push({ + routes.unshift({ name: 'prismic-preview', path: options.preview, component: resolve(this.options.buildDir, 'prismic/pages/preview.vue'),