mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-14 10:04:05 +00:00
95cbe67f99
Co-authored-by: Pooya Parsa <pyapar@gmail.com> Co-authored-by: fgiraud <hello@florent.dev>
16 lines
331 B
TypeScript
16 lines
331 B
TypeScript
import { defineNuxtModule, extendPages } from '@nuxt/kit'
|
|
import { resolve } from 'pathe'
|
|
|
|
export default defineNuxtModule({
|
|
setup () {
|
|
extendPages((pages) => {
|
|
// Add /test page
|
|
pages.push({
|
|
name: 'Test',
|
|
path: '/test',
|
|
file: resolve(__dirname, './pages/test.vue')
|
|
})
|
|
})
|
|
}
|
|
})
|