diff --git a/src/server/serve.ts b/src/server/serve.ts index c6d93f9..f92ec4b 100644 --- a/src/server/serve.ts +++ b/src/server/serve.ts @@ -43,7 +43,7 @@ const publicClientDirectory = path.join(staticDirectory, 'client') type ServingOptions = Pick< ServerOptions, - 'locale' | 'assetPrefix' | 'linkPrefix' | 'outputMode' + 'locale' | 'assetPrefix' | 'linkPrefix' | 'outputMode' | 'domains' > type ServingOptionsCb = | ServingOptions diff --git a/src/shell/app-shell.server.tsx b/src/shell/app-shell.server.tsx index 60da496..14e61b7 100644 --- a/src/shell/app-shell.server.tsx +++ b/src/shell/app-shell.server.tsx @@ -53,9 +53,9 @@ export default async function ( defaultLocale, locale: options.locale || defaultLocale, assetPrefix: options.assetPrefix, - locales: options.locales || locales, + locales, basePath, - domains, + domains: options.domains || domains, nodeEnv: options.nodeEnv, linkPrefix: options.linkPrefix, query: options.query, diff --git a/src/types/entrypoint.ts b/src/types/entrypoint.ts index c85fbe9..e457858 100644 --- a/src/types/entrypoint.ts +++ b/src/types/entrypoint.ts @@ -1,5 +1,5 @@ import type { ComponentType } from 'react' -import { DomainLocale, I18NConfig } from 'next/dist/server/config-shared.js' +import { DomainLocale } from 'next/dist/server/config-shared.js' import { ParsedUrlQuery } from 'querystring' export interface WrapperProps { @@ -28,8 +28,8 @@ export type ServerOptions = { /** path to all assets */ publicPath: string outputMode?: OutputMode + domains?: DomainLocale[] locale?: string - locales?: Partial['locales'] assetPrefix?: string linkPrefix?: string query?: ParsedUrlQuery @@ -40,8 +40,10 @@ export type NextStaticData = { context: Record publicAssetPath: string locales?: string[] - domains?: DomainLocale[] basePath?: string defaultLocale?: string query?: ParsedUrlQuery -} & Pick +} & Pick< + ServerOptions, + 'domains' | 'locale' | 'assetPrefix' | 'nodeEnv' | 'linkPrefix' +>