2021-10-06 12:31:52 +00:00
|
|
|
import { defineNuxtConfig } from '@nuxt/bridge'
|
|
|
|
|
2021-04-23 19:52:32 +00:00
|
|
|
// @ts-ignore
|
|
|
|
global.__NUXT_PREPATHS__ = (global.__NUXT_PREPATHS__ || []).concat(__dirname)
|
|
|
|
|
2021-10-06 12:31:52 +00:00
|
|
|
export default defineNuxtConfig({
|
2021-09-29 10:38:44 +00:00
|
|
|
components: true,
|
2021-07-21 20:05:22 +00:00
|
|
|
serverMiddleware: [
|
|
|
|
{
|
|
|
|
handle (req, _res, next) {
|
|
|
|
req.spa = req.url.includes('?spa')
|
|
|
|
next()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
2021-07-15 09:38:06 +00:00
|
|
|
buildDir: process.env.NITRO_BUILD_DIR,
|
2021-09-29 10:38:44 +00:00
|
|
|
plugins: ['~/plugins/setup.js'],
|
2021-07-15 09:38:06 +00:00
|
|
|
nitro: {
|
|
|
|
output: { dir: process.env.NITRO_OUTPUT_DIR }
|
2021-10-11 17:48:03 +00:00
|
|
|
},
|
|
|
|
bridge: {
|
2021-10-26 12:59:05 +00:00
|
|
|
meta: true,
|
2022-02-18 18:14:57 +00:00
|
|
|
vite: !process.env.TEST_WITH_WEBPACK
|
2021-11-05 08:51:15 +00:00
|
|
|
}
|
2021-10-06 12:31:52 +00:00
|
|
|
})
|