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({
setup(options) {
const resolver = createResolver(import.meta.url)
extendPages((pages) => {
pages.unshift({
name: 'prismic-preview',
pages.unshift({
name: 'prismic-preview',
path: '/preview',
file: resolver.resolve('runtime/preview.vue')
})
})
file: resolver.resolve('runtime/preview.vue')
})
})
}
})
```