mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-14 10:04:05 +00:00
6cbcd59d4e
* fix: ensure interpolate value is a string * feat: allow native values from dotenv * test: update test for regression on native value check
19 lines
333 B
JavaScript
19 lines
333 B
JavaScript
export default {
|
|
publicRuntimeConfig: {
|
|
baseURL: process.env.BASE_URL,
|
|
isFixture: true
|
|
},
|
|
privateRuntimeConfig: {
|
|
baseURL: '${PUBLIC_URL}${BASE_URL}',
|
|
API_SECRET: ''
|
|
},
|
|
serverMiddleware: [
|
|
(req, _, next) => {
|
|
if (req.url.includes('?spa')) {
|
|
req.spa = true
|
|
}
|
|
next()
|
|
}
|
|
]
|
|
}
|