mirror of
https://github.com/nuxt/nuxt.git
synced 2024-12-04 19:37:18 +00:00
28 lines
462 B
JavaScript
28 lines
462 B
JavaScript
export default {
|
|
publicRuntimeConfig: {
|
|
baseURL: process.env.BASE_URL,
|
|
isFixture: true,
|
|
TOKEN: 'default',
|
|
nested: {
|
|
priv: 0,
|
|
pub: 1
|
|
}
|
|
},
|
|
privateRuntimeConfig: {
|
|
baseURL: '${PUBLIC_URL}${BASE_URL}',
|
|
API_SECRET: '',
|
|
FOO: '123/${FOO}',
|
|
nested: {
|
|
priv: 1
|
|
}
|
|
},
|
|
serverMiddleware: [
|
|
(req, _, next) => {
|
|
if (req.url.includes('?spa')) {
|
|
req.spa = true
|
|
}
|
|
next()
|
|
}
|
|
]
|
|
}
|