Skip to content

Commit

Permalink
fix: undefined values
Browse files Browse the repository at this point in the history
  • Loading branch information
Baroshem committed Jan 16, 2023
1 parent 2e398f8 commit 923e43f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ export default defineNuxtModule<ModuleOptions>({
if (securityOptions.hidePoweredBy) {
nuxt.hook('nitro:config', (config) => {
config.plugins = config.plugins || []
config.externals = config.externals || {}
config.externals.inline = config.externals.inline || []
config.externals.inline.push(normalize(fileURLToPath(new URL('./runtime', import.meta.url))))
config.plugins.push(
normalize(fileURLToPath(new URL('./runtime/nitro', import.meta.url)))
Expand Down

0 comments on commit 923e43f

Please sign in to comment.