Nuxt/test/fixtures/basic/nuxt.config.ts
Kevin Marrec 7c0d2e176c
feat(nuxt3): extends support for pages & middleware directories (#3783)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2022-03-22 19:12:54 +01:00

34 lines
747 B
TypeScript

import { defineNuxtConfig } from 'nuxt3'
import { addComponent } from '@nuxt/kit'
export default defineNuxtConfig({
buildDir: process.env.NITRO_BUILD_DIR,
builder: process.env.TEST_WITH_WEBPACK ? 'webpack' : 'vite',
extends: [
'./extends/bar',
'./extends/foo'
],
nitro: {
output: { dir: process.env.NITRO_OUTPUT_DIR }
},
publicRuntimeConfig: {
testConfig: 123
},
privateRuntimeConfig: {
privateConfig: 'secret_key'
},
modules: ['~/modules/example'],
hooks: {
'modules:done' () {
addComponent({
name: 'CustomComponent',
export: 'namedExport',
filePath: '~/other-components-folder/named-export'
})
}
},
experimental: {
reactivityTransform: true
}
})