Skip to content

Commit a0eae1f

Browse files
chore(appwrite): remove debug logging from configuration
1 parent 5d42e99 commit a0eae1f

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

lib/appwrite/config.ts

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff 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-
2510
const 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-
3917
export const account = client ? new Account(client) : null;
4018
export const databases = client ? new Databases(client) : null;
4119

0 commit comments

Comments
 (0)