webcontainer-core
webcontainer-core copied to clipboard
Can't connect to existing database in Supabase from forked Bolt or Stackblitz
Describe the bug
.env file created in Stackblitz to connect to Supabase, saved and operational, disappears when Stackblitz is reloaded.
Reason for action:
- Chat conversation history eating up tokens in Bolt. Bolt reforked to remove conversation history, but requires connection to supabase.
- Connect to supabase options are 'Manual' or 'create new'. 'Manual' option unresponsive.
- Created .env file with credentials in Bolt - failed
- Created .env file with credentials in Stackblitz - successful, until page reloaded.
- .env file does not show in Bolt (before Stackblitz page is reloaded)
Link to the blitz that caused the error
https://stackblitz.com/edit/sb1-ixuzbk1v?file=README.md
Steps to reproduce
Create .env file with API key and link to Supabase Saved Connection to database confirmed on Stackblitz side and Supabase side. Reload Stackblitz page - .env file not present. No connection to Supabase.
Expected behavior
.env file maintained and doesn't disappear.
Parity with Local
- [x] I have run the project in my local machine and I could not reproduce the issue.
Screenshots
No response
Platform
Browser name = Chrome
Full version = 133.0.0.0
Major version = 133
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36 Edg/133.0.0.0
performance.memory = {
"totalJSHeapSize": 74175562,
"usedJSHeapSize": 68639846,
"jsHeapSizeLimit": 4294705152
}
Hash = 31ca1d38
Additional context
No response