mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-17 11:15:14 +00:00
0337932115
Co-authored-by: Sébastien Chopin <seb@nuxtjs.com> Co-authored-by: Alexander Lichter <manniL@gmx.net>
18 lines
312 B
JavaScript
18 lines
312 B
JavaScript
export default {
|
|
publicRuntimeConfig: {
|
|
baseURL: process.env.BASE_URL
|
|
},
|
|
privateRuntimeConfig: {
|
|
baseURL: '${PUBLIC_URL}${BASE_URL}',
|
|
API_SECRET: ''
|
|
},
|
|
serverMiddleware: [
|
|
(req, _, next) => {
|
|
if (req.url.includes('?spa')) {
|
|
req.spa = true
|
|
}
|
|
next()
|
|
}
|
|
]
|
|
}
|