fix(docs): better indentation on extendPages example

This commit is contained in:
Andrey 2023-08-16 14:31:42 +03:00
parent 54b2cc7e67
commit 20cec3fe93

View File

@ -1151,13 +1151,14 @@ import { createResolver, defineNuxtModule, extendPages } from '@nuxt/kit'
export default defineNuxtModule({ export default defineNuxtModule({
setup(options) { setup(options) {
const resolver = createResolver(import.meta.url) const resolver = createResolver(import.meta.url)
extendPages((pages) => { extendPages((pages) => {
pages.unshift({ pages.unshift({
name: 'prismic-preview', name: 'prismic-preview',
path: '/preview', path: '/preview',
file: resolver.resolve('runtime/preview.vue') file: resolver.resolve('runtime/preview.vue')
}) })
}) })
} }
}) })
``` ```