File tree Expand file tree Collapse file tree 1 file changed +0
-22
lines changed
Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Original file line number Diff line number Diff line change @@ -7,35 +7,13 @@ const hasRequiredEnvVars =
77 process . env . NEXT_PUBLIC_APPWRITE_ENDPOINT &&
88 process . env . NEXT_PUBLIC_APPWRITE_PROJECT_ID ;
99
10- // Temporary debug logging to diagnose deployment issues
11- if ( isClientSide ) {
12- console . log ( "🔍 Appwrite Debug:" , {
13- endpoint : process . env . NEXT_PUBLIC_APPWRITE_ENDPOINT
14- ? "✅ Set"
15- : "❌ Missing" ,
16- projectId : process . env . NEXT_PUBLIC_APPWRITE_PROJECT_ID
17- ? "✅ Set"
18- : "❌ Missing" ,
19- hasRequiredEnvVars,
20- endpointValue : process . env . NEXT_PUBLIC_APPWRITE_ENDPOINT ,
21- projectIdValue : process . env . NEXT_PUBLIC_APPWRITE_PROJECT_ID ,
22- } ) ;
23- }
24-
2510const client =
2611 isClientSide && hasRequiredEnvVars
2712 ? new Client ( )
2813 . setEndpoint ( process . env . NEXT_PUBLIC_APPWRITE_ENDPOINT ! )
2914 . setProject ( process . env . NEXT_PUBLIC_APPWRITE_PROJECT_ID ! )
3015 : null ;
3116
32- if ( isClientSide ) {
33- console . log (
34- "🔍 Appwrite Client:" ,
35- client ? "✅ Initialized" : "❌ Not initialized" ,
36- ) ;
37- }
38-
3917export const account = client ? new Account ( client ) : null ;
4018export const databases = client ? new Databases ( client ) : null ;
4119
You can’t perform that action at this time.
0 commit comments