mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 16:43:55 +00:00
20 lines
355 B
JavaScript
20 lines
355 B
JavaScript
export default {
|
|
publicRuntimeConfig: {
|
|
baseURL: process.env.BASE_URL,
|
|
isFixture: true,
|
|
TOKEN: 'default'
|
|
},
|
|
privateRuntimeConfig: {
|
|
baseURL: '${PUBLIC_URL}${BASE_URL}',
|
|
API_SECRET: ''
|
|
},
|
|
serverMiddleware: [
|
|
(req, _, next) => {
|
|
if (req.url.includes('?spa')) {
|
|
req.spa = true
|
|
}
|
|
next()
|
|
}
|
|
]
|
|
}
|