Skip to content

Commit

Permalink
fix: expose nuxt scope #site-config alias
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Dec 7, 2024
1 parent dd795fe commit a3bf36e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/module/src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,9 @@ declare global {
}

addServerImportsDir(resolve('./runtime/server/composables'))
nuxt.options.nitro.alias = nuxt.options.nitro.alias || {}
nuxt.options.nitro.alias['#site-config'] = resolve('./runtime')
nuxt.options.alias['#site-config'] = resolve('./runtime')
// support legacy
nuxt.options.nitro.alias = nuxt.options.nitro.alias || {}
nuxt.options.nitro.alias['#internal/nuxt-site-config'] = resolve('./runtime/server/composable-barrel-deprecated')

// add site-config-stack to transpile
Expand Down

0 comments on commit a3bf36e

Please sign in to comment.