Skip to content

Commit

Permalink
refactor(module): remove redundant nitroConfig.devStorage assignment
Browse files Browse the repository at this point in the history
Eliminates the unnecessary assignment of `nitroConfig.devStorage` for
`i18n-locales`. This change simplifies the code without affecting
functionality, ensuring cleaner configuration management.
  • Loading branch information
s00d committed Jan 20, 2025
1 parent 71d736c commit 9f4ca5d
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -370,12 +370,6 @@ export default defineNuxtModule<ModuleOptions>({
base: path.join(nuxt.options.rootDir, 'server/assets/i18n-locales'),
}

nitroConfig.devStorage = nitroConfig.devStorage || {}
nitroConfig.devStorage['i18n-locales'] = {
driver: isVercelPages ? 'vercelKV' : 'fs',
base: path.join(nuxt.options.rootDir, 'server/assets/i18n-locales'),
}

if (nitroConfig.imports) {
nitroConfig.imports.presets = nitroConfig.imports.presets || []
nitroConfig.imports.presets.push({
Expand Down

0 comments on commit 9f4ca5d

Please sign in to comment.