Skip to content

Commit 9406d19

Browse files
Update lib/utils/domain-config.ts
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 5455198 commit 9406d19

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/utils/domain-config.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,11 @@ export function getDomainConfig(hostname?: string | null): DomainConfigType {
1313
try {
1414
const headersList = headers()
1515
hostname = headersList.get('host')
16+
if (!hostname) {
17+
console.warn('No host header found, falling back to default domain');
18+
}
1619
} catch (e) {
17-
// Fallback to default if headers() fails
20+
console.error('Failed to access headers:', e);
1821
return domainConfigs["wishonia.love"]
1922
}
2023
}

0 commit comments

Comments
 (0)