mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-04 16:09:59 +00:00
fix: use unshift
on publicAssets
(#885)
This commit is contained in:
parent
7e191d7296
commit
3c90fee07e
1 changed files with 2 additions and 2 deletions
|
@ -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