forked from SinghAman21/silentparcel
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathverify-setup.js
More file actions
46 lines (39 loc) · 1.54 KB
/
verify-setup.js
File metadata and controls
46 lines (39 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// Simple verification script for environment setup
console.log('🔍 Verifying environment setup...\n');
// Check required environment variables
const requiredEnvVars = [
'NEXT_PUBLIC_SUPABASE_URL',
'NEXT_PUBLIC_SUPABASE_ANON_KEY',
'SUPABASE_SERVICE_ROLE_KEY'
];
const optionalEnvVars = [
'HCAPTCHA_SECRET_KEY',
'NEXT_PUBLIC_BASE_URL'
];
console.log('Required Environment Variables:');
requiredEnvVars.forEach(varName => {
const value = process.env[varName];
if (value && value !== 'example-url' && value !== 'example-anon-key' && value !== 'example-service-key') {
console.log(`✅ ${varName}: Set`);
} else {
console.log(`❌ ${varName}: Not set or using default value`);
}
});
console.log('\nOptional Environment Variables:');
optionalEnvVars.forEach(varName => {
const value = process.env[varName];
if (value) {
console.log(`✅ ${varName}: Set`);
} else {
console.log(`⚠️ ${varName}: Not set (optional)`);
}
});
console.log('\n📋 Summary:');
console.log('- Make sure you have set up your Supabase project');
console.log('- Run the SQL scripts in scripts/supabase-chat-schema.sql to create the required tables');
console.log('- Set the required environment variables in your .env.local file');
console.log('- The room creation system should work once these are properly configured');
console.log('\n🚀 Next steps:');
console.log('1. Create a .env.local file with your Supabase credentials');
console.log('2. Run the database schema scripts');
console.log('3. Test the room creation flow in your application');