SUPABASE FORK HOTFIX ⚠️
Critical Information
When working with Supabase in a forked Bolt.new project, you may encounter issues with database connections. This is because the Supabase connection is tied to the original project’s credentials.
The Problem
- You fork a project that uses Supabase
- The forked project still tries to use the original project’s Supabase credentials
- This can lead to:
- Data leakage
- Authentication issues
- Database connection failures
The Solution
1. Create Your Own Supabase Project
- Go to Supabase
- Create a new project
- Get your project credentials
2. Update Environment Variables
After creating your Supabase project:
- Click “Connect to Supabase” in Bolt.new
- Follow the connection process
- This will automatically update your environment variables
3. Run Migrations
Your new Supabase project needs the correct database structure:
- Look for migration files in
/supabase/migrations
- Apply these migrations to your new project
- Verify table structure matches the original
Best Practices
-
Always Create a New Project
- Never use the original project’s credentials
- Create your own Supabase instance
- Keep your data separate
-
Check Environment Variables
- Verify you’re using your own credentials
- Never commit sensitive information
- Use the Bolt.new Supabase connection feature
-
Test Thoroughly
- Verify database connections
- Test authentication flows
- Confirm data operations work
Need Help?
If you’re having issues:
- Check our Advanced Support options
- Join the Discord community
- Review the Supabase documentation