Skip to content

Commit

Permalink
fix: inline options edge channel (#2361)
Browse files Browse the repository at this point in the history
  • Loading branch information
BobbieGoede authored Sep 3, 2023
1 parent a909f54 commit bdc2991
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,10 @@ export function getHash(text: Buffer | string): string {

export function getLayerI18n(configLayer: NuxtConfigLayer) {
const layerInlineOptions = (configLayer.config.modules || []).find(
(mod): mod is [string, NuxtI18nOptions] | undefined => isArray(mod) && mod[0] === NUXT_I18N_MODULE_ID
(mod): mod is [string, NuxtI18nOptions] | undefined =>
isArray(mod) &&
typeof mod[0] === 'string' &&
[NUXT_I18N_MODULE_ID, `${NUXT_I18N_MODULE_ID}-edge`].includes(mod[0])
)?.[1]

if (configLayer.config.i18n) {
Expand Down

0 comments on commit bdc2991

Please sign in to comment.