File tree Expand file tree Collapse file tree 3 files changed +10
-7
lines changed Expand file tree Collapse file tree 3 files changed +10
-7
lines changed Original file line number Diff line number Diff 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 >
Original file line number Diff line number Diff line change 11import { z } from "zod"
22
33export 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
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments