mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-18 09:25:54 +00:00
fix(nitro): use app.assetsPath
for publicPath
(#1978)
Co-authored-by: Daniel Roe <daniel@roe.dev>
This commit is contained in:
parent
00e6043601
commit
4a486377c5
@ -132,7 +132,7 @@ export function getNitroContext (nuxtOptions: NuxtOptions, input: NitroInput): N
|
|||||||
publicDir: resolve(nuxtOptions.srcDir, nuxtOptions.dir.public || nuxtOptions.dir.static),
|
publicDir: resolve(nuxtOptions.srcDir, nuxtOptions.dir.public || nuxtOptions.dir.static),
|
||||||
serverDir: resolve(nuxtOptions.srcDir, (nuxtOptions.dir as any).server || 'server'),
|
serverDir: resolve(nuxtOptions.srcDir, (nuxtOptions.dir as any).server || 'server'),
|
||||||
routerBase: nuxtOptions.router.base,
|
routerBase: nuxtOptions.router.base,
|
||||||
publicPath: nuxtOptions.build.publicPath,
|
publicPath: nuxtOptions.app.assetsPath,
|
||||||
isStatic: nuxtOptions.target === 'static' && !nuxtOptions.dev,
|
isStatic: nuxtOptions.target === 'static' && !nuxtOptions.dev,
|
||||||
fullStatic: nuxtOptions.target === 'static' && !nuxtOptions._legacyGenerate,
|
fullStatic: nuxtOptions.target === 'static' && !nuxtOptions._legacyGenerate,
|
||||||
staticAssets: nuxtOptions.generate.staticAssets,
|
staticAssets: nuxtOptions.generate.staticAssets,
|
||||||
|
Loading…
Reference in New Issue
Block a user