We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5455198 commit 9406d19Copy full SHA for 9406d19
lib/utils/domain-config.ts
@@ -13,8 +13,11 @@ export function getDomainConfig(hostname?: string | null): DomainConfigType {
13
try {
14
const headersList = headers()
15
hostname = headersList.get('host')
16
+ if (!hostname) {
17
+ console.warn('No host header found, falling back to default domain');
18
+ }
19
} catch (e) {
- // Fallback to default if headers() fails
20
+ console.error('Failed to access headers:', e);
21
return domainConfigs["wishonia.love"]
22
}
23
0 commit comments