Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
fix(schema): evaluate env variables when resolving values (#8079)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe authored Oct 10, 2022
1 parent 085f90a commit e94c3b3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/schema/src/config/_app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,14 @@ export default defineUntypedSchema({
* 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. */
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).
Expand Down

0 comments on commit e94c3b3

Please sign in to comment.