File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22 "extends" : " next/core-web-vitals" ,
33 "rules" : {
44 "react/no-unescaped-entities" : " off" ,
5- "@typescript-eslint/no-unused-vars" : " warn "
5+ "@typescript-eslint/no-unused-vars" : " off "
66 }
7- }
7+ }
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ export default function CompleteProfilePage() {
117117 setPhone ( '' ) ;
118118 setPhoneValidation ( { valid : true } ) ;
119119 }
120- // eslint-disable-next-line react-hooks/exhaustive-deps
120+
121121 } , [ phoneNumber , selectedCountryCode . dialCode ] ) ;
122122
123123 const handleSave = async ( skip : boolean = false ) => {
Original file line number Diff line number Diff line change @@ -11,8 +11,11 @@ async function connectDB() {
1111 if ( mongoose . connection . readyState === 1 ) {
1212 return mongoose . connection ;
1313 }
14-
15- await mongoose . connect ( MONGODB_URI ) ;
14+
15+ await mongoose . connect ( MONGODB_URI , {
16+ serverSelectionTimeoutMS : 5000 , // Fail fast if DB is not available (default is 30s)
17+ socketTimeoutMS : 45000 ,
18+ } ) ;
1619 return mongoose . connection ;
1720 } catch ( error ) {
1821 console . error ( 'Error connecting to MongoDB:' , error ) ;
You can’t perform that action at this time.
0 commit comments