mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-29 09:02:03 +00:00
fix(schema): use entire object for app
properties (#4431)
This commit is contained in:
parent
b30d8ad1f8
commit
71b808c8e9
@ -725,9 +725,9 @@ export default {
|
|||||||
...get('privateRuntimeConfig'),
|
...get('privateRuntimeConfig'),
|
||||||
public: get('publicRuntimeConfig'),
|
public: get('publicRuntimeConfig'),
|
||||||
app: {
|
app: {
|
||||||
baseURL: get('app.baseURL'),
|
baseURL: get('app').baseURL,
|
||||||
buildAssetsDir: get('app.buildAssetsDir'),
|
buildAssetsDir: get('app').buildAssetsDir,
|
||||||
cdnURL: get('app.cdnURL'),
|
cdnURL: get('app').cdnURL,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
@ -192,7 +192,7 @@ export default {
|
|||||||
* @version 2
|
* @version 2
|
||||||
*/
|
*/
|
||||||
publicPath: {
|
publicPath: {
|
||||||
$resolve: (val, get) => val ? withTrailingSlash(normalizeURL(val)) : get('app.buildAssetsDir')
|
$resolve: (val, get) => val ? withTrailingSlash(normalizeURL(val)) : get('app').buildAssetsDir
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -160,7 +160,7 @@ export default {
|
|||||||
* The full path to the directory underneath `/_nuxt/` where static assets
|
* The full path to the directory underneath `/_nuxt/` where static assets
|
||||||
* (payload, state and manifest files) will live.
|
* (payload, state and manifest files) will live.
|
||||||
*/
|
*/
|
||||||
base: { $resolve: (val, get) => val || joinURL(get('app.buildAssetsDir'), get('generate.dir')) },
|
base: { $resolve: (val, get) => val || joinURL(get('app').buildAssetsDir, get('generate.dir')) },
|
||||||
/** The full path to the versioned directory where static assets for the current buidl are located. */
|
/** The full path to the versioned directory where static assets for the current buidl are located. */
|
||||||
versionBase: { $resolve: (val, get) => val || joinURL(get('generate.base'), get('generate.version')) },
|
versionBase: { $resolve: (val, get) => val || joinURL(get('generate.base'), get('generate.version')) },
|
||||||
/** A unique string to uniquely identify payload versions (defaults to the current timestamp). */
|
/** A unique string to uniquely identify payload versions (defaults to the current timestamp). */
|
||||||
|
@ -33,7 +33,7 @@ export default {
|
|||||||
* @version 2
|
* @version 2
|
||||||
*/
|
*/
|
||||||
base: {
|
base: {
|
||||||
$resolve: (val, get) => val ? withTrailingSlash(normalizeURL(val)) : get('app.baseURL')
|
$resolve: (val, get) => val ? withTrailingSlash(normalizeURL(val)) : get('app').baseURL
|
||||||
},
|
},
|
||||||
|
|
||||||
/** @private */
|
/** @private */
|
||||||
|
Loading…
Reference in New Issue
Block a user