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'),
|
||||
public: get('publicRuntimeConfig'),
|
||||
app: {
|
||||
baseURL: get('app.baseURL'),
|
||||
buildAssetsDir: get('app.buildAssetsDir'),
|
||||
cdnURL: get('app.cdnURL'),
|
||||
baseURL: get('app').baseURL,
|
||||
buildAssetsDir: get('app').buildAssetsDir,
|
||||
cdnURL: get('app').cdnURL,
|
||||
}
|
||||
})
|
||||
},
|
||||
|
@ -192,7 +192,7 @@ export default {
|
||||
* @version 2
|
||||
*/
|
||||
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
|
||||
* (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. */
|
||||
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). */
|
||||
|
@ -33,7 +33,7 @@ export default {
|
||||
* @version 2
|
||||
*/
|
||||
base: {
|
||||
$resolve: (val, get) => val ? withTrailingSlash(normalizeURL(val)) : get('app.baseURL')
|
||||
$resolve: (val, get) => val ? withTrailingSlash(normalizeURL(val)) : get('app').baseURL
|
||||
},
|
||||
|
||||
/** @private */
|
||||
|
Loading…
Reference in New Issue
Block a user