Skip to content

Commit

Permalink
fix: support deprecated path alias #internal/nuxt-site-config
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Nov 3, 2024
1 parent 9aca7e1 commit a093849
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/module/src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@ declare global {
nuxt.options.nitro.imports.presets.push(siteConfigPreset)
nuxt.options.nitro.alias = nuxt.options.nitro.alias || {}
nuxt.options.nitro.alias['#site-config'] = resolve('./runtime')
// support legacy
nuxt.options.nitro.alias['#internal/nuxt-site-config'] = resolve('./runtime/nitro/composables')

// add site-config-stack to transpile
nuxt.options.build.transpile.push('site-config-stack')
Expand Down

0 comments on commit a093849

Please sign in to comment.