Skip to content

Commit 7e3f84c

Browse files
committed
Merge remote-tracking branch 'mikepsinn/main'
2 parents cffb5d6 + daf5fcf commit 7e3f84c

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

app/dfda/components/dfda-home-page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ export default function DFDAHomePage() {
211211
variableCategoryName: 'Symptoms',
212212
limit: '25'
213213
}}
214-
placeholder="Enter treatment 💊"
214+
placeholder="Enter symptom 🤒"
215215
/>
216216
</div>
217217
</section>

config/domains.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { z } from "zod"
22

33
export const DomainConfig = z.object({
4-
name: z.string(),
5-
description: z.string(),
4+
name: z.string().min(1).max(50),
5+
description: z.string().min(10).max(200),
66
author: z.string().optional(),
7-
keywords: z.string().optional(),
8-
defaultHomepage: z.string(),
9-
afterLoginPath: z.string(),
7+
keywords: z.array(z.string()).optional(),
8+
defaultHomepage: z.string().startsWith("/"),
9+
afterLoginPath: z.string().startsWith("/"),
1010
ogImage: z.string().url().optional(),
1111
})
1212

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)