Skip to content

Commit

Permalink
Update check
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk committed Aug 8, 2022
1 parent 1f4774f commit f88b908
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/next/export/worker.ts
Expand Up @@ -211,9 +211,13 @@ export default async function exportPage({
}

if (
locale &&
buildExport &&
renderOpts.domainLocales &&
renderOpts.domainLocales.some((dl => dl.locales?.includes(locale)))
renderOpts.domainLocales.some(
(dl) =>
dl.defaultLocale === locale || dl.locales?.includes(locale || '')
)
) {
addRequestMeta(req, '__nextIsLocaleDomain', true)
}
Expand Down

0 comments on commit f88b908

Please sign in to comment.