mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-14 01:53:55 +00:00
24 lines
552 B
TypeScript
24 lines
552 B
TypeScript
import { defineNuxtConfig } from 'nuxt3'
|
|
import { addComponent } from '@nuxt/kit'
|
|
|
|
export default defineNuxtConfig({
|
|
buildDir: process.env.NITRO_BUILD_DIR,
|
|
nitro: {
|
|
output: { dir: process.env.NITRO_OUTPUT_DIR }
|
|
},
|
|
publicRuntimeConfig: {
|
|
// @ts-ignore TODO: Fix schema types
|
|
testConfig: '123'
|
|
},
|
|
modules: ['~/modules/example'],
|
|
hooks: {
|
|
'modules:done' () {
|
|
addComponent({
|
|
name: 'CustomComponent',
|
|
export: 'namedExport',
|
|
filePath: '~/other-components-folder/named-export'
|
|
})
|
|
}
|
|
}
|
|
})
|