2021-10-06 12:31:52 +00:00
|
|
|
import { defineNuxtConfig } from 'nuxt3'
|
2022-02-17 14:23:55 +00:00
|
|
|
import { addComponent } from '@nuxt/kit'
|
2021-04-23 19:52:32 +00:00
|
|
|
|
2021-07-15 09:38:06 +00:00
|
|
|
export default defineNuxtConfig({
|
|
|
|
buildDir: process.env.NITRO_BUILD_DIR,
|
2022-02-25 19:11:01 +00:00
|
|
|
builder: process.env.TEST_WITH_WEBPACK ? 'webpack' : 'vite',
|
2021-07-15 09:38:06 +00:00
|
|
|
nitro: {
|
|
|
|
output: { dir: process.env.NITRO_OUTPUT_DIR }
|
2021-10-02 20:30:20 +00:00
|
|
|
},
|
|
|
|
publicRuntimeConfig: {
|
|
|
|
// @ts-ignore TODO: Fix schema types
|
|
|
|
testConfig: '123'
|
2022-02-15 09:50:11 +00:00
|
|
|
},
|
2022-02-17 14:23:55 +00:00
|
|
|
modules: ['~/modules/example'],
|
|
|
|
hooks: {
|
|
|
|
'modules:done' () {
|
|
|
|
addComponent({
|
|
|
|
name: 'CustomComponent',
|
|
|
|
export: 'namedExport',
|
|
|
|
filePath: '~/other-components-folder/named-export'
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
2021-07-15 09:38:06 +00:00
|
|
|
})
|