🔧 Hackathon 2025 配置测试

检查你的 Supabase 配置和数据库连接

1. 配置文件检查

检查 hackathon-config.local.js 是否正确加载...

2. Supabase 库检查

检查 Supabase JS 库是否正确加载...

3. 数据库连接测试

尝试连接到 Supabase 数据库...

4. 数据表检查

检查必需的数据表是否存在...

📝 如何修复问题

如果测试失败,请按照以下步骤操作:

1. 配置文件问题:
- 确保已创建 hackathon-config.local.js
- 复制 hackathon-config.js 并重命名
- 填写你的 Supabase URL 和 Key

2. Supabase 库问题:
- 在 HTML 文件的 <head> 中添加:
<script src="https://cdn.jsdelivr.net/npm/@supabase/supabase-js@2"></script>

3. 数据库连接问题:
- 检查 Supabase URL 和 Key 是否正确
- 访问 Supabase Dashboard → Settings → API 获取正确的值

4. 数据表问题:
- 在 Supabase Dashboard → SQL Editor 运行 hackathon-setup.sql
- 确保所有表都已成功创建