mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-17 19:25:13 +00:00
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()
|
||
|
}
|
||
|
]
|
||
|
}
|