mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 16:43:55 +00:00
23 lines
453 B
TypeScript
23 lines
453 B
TypeScript
// @ts-ignore
|
|
global.__NUXT_PREPATHS__ = (global.__NUXT_PREPATHS__ || []).concat(__dirname)
|
|
|
|
export default {
|
|
components: true,
|
|
buildModules: [
|
|
'@nuxt/bridge'
|
|
],
|
|
serverMiddleware: [
|
|
{
|
|
handle (req, _res, next) {
|
|
req.spa = req.url.includes('?spa')
|
|
next()
|
|
}
|
|
}
|
|
],
|
|
buildDir: process.env.NITRO_BUILD_DIR,
|
|
plugins: ['~/plugins/setup.js'],
|
|
nitro: {
|
|
output: { dir: process.env.NITRO_OUTPUT_DIR }
|
|
}
|
|
}
|