fix(schema): evaluate env variables when resolving values (#8079)

This commit is contained in:
Daniel Roe 2022-10-10 11:04:58 +01:00 committed by GitHub
parent 085f90a3d3
commit e94c3b3704
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,10 +51,14 @@ export default defineUntypedSchema({
* NUXT_APP_BASE_URL=/prefix/ node .output/server/index.mjs * NUXT_APP_BASE_URL=/prefix/ node .output/server/index.mjs
* ``` * ```
*/ */
baseURL: process.env.NUXT_APP_BASE_URL || '/', baseURL: {
$resolve: async (val) => val || process.env.NUXT_APP_BASE_URL || '/',
},
/** The folder name for the built site assets, relative to `baseURL` (or `cdnURL` if set). This is set at build time and should not be customized at runtime. */ /** The folder name for the built site assets, relative to `baseURL` (or `cdnURL` if set). This is set at build time and should not be customized at runtime. */
buildAssetsDir: process.env.NUXT_APP_BUILD_ASSETS_DIR || '/_nuxt/', buildAssetsDir: {
$resolve: async (val) => val || process.env.NUXT_APP_BUILD_ASSETS_DIR || '/_nuxt/',
},
/** /**
* The folder name for the built site assets, relative to `baseURL` (or `cdnURL` if set). * The folder name for the built site assets, relative to `baseURL` (or `cdnURL` if set).