fix: use unshift
on publicAssets
(#885)
This commit is contained in:
parent
7e191d7296
commit
3c90fee07e
|
@ -25,9 +25,9 @@ export default defineNuxtModule({
|
|||
nuxt.hook('nitro:config', (config) => {
|
||||
config.publicAssets = config.publicAssets || []
|
||||
if (env === 'dev')
|
||||
config.publicAssets.push({ dir: resolve('../public-dev') })
|
||||
config.publicAssets.unshift({ dir: resolve('../public-dev') })
|
||||
else if (env === 'canary' || env === 'preview' || !isCI)
|
||||
config.publicAssets.push({ dir: resolve('../public-staging') })
|
||||
config.publicAssets.unshift({ dir: resolve('../public-staging') })
|
||||
})
|
||||
},
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue