mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-30 01:17:16 +00:00
20f31712c1
Co-authored-by: Rodrigo Mesquita <rodrigoriome@gmail.com> Co-authored-by: Daniel Roe <daniel@roe.dev> Co-authored-by: Rodrigo Mesquita <30835404+rrmesquita@users.noreply.github.com>
27 lines
635 B
TypeScript
27 lines
635 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',
|
|
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'
|
|
})
|
|
}
|
|
}
|
|
})
|