Skip to content

Commit 78c28ba

Browse files
committed
fix: Unshift preview route instead of pushing
1 parent bd9fd8e commit 78c28ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function install(moduleOptions) {
2222
src: path.join(__dirname, 'templates/pages/preview.vue'),
2323
});
2424
this.extendRoutes((routes, resolve) => {
25-
routes.push({
25+
routes.unshift({
2626
name: 'prismic-preview',
2727
path: options.preview,
2828
component: resolve(this.options.buildDir, 'prismic/pages/preview.vue'),

0 commit comments

Comments
 (0)