Hey all, new here. I’m a target user of Bolt.DIY, so first thank you all for working on it! I have some dev experience, enough to crash any code including any hello world
I just solved this problem so wanted to put it up here in case others are hitting this wall.
Running latest version on a mac M1 and Canary. Using Claude, OpenAI, and Google as LLMs. Using Supabase and Github.
So now bolt looks like it’s not writing to Supabase (as of today). I have the right creds and it was working last night. Ggggrrrr.
My workflow:
work in Bolt using Claude Sonnet. Use bolt function (the button) to push to githib. Netlify auto pulling from the repo and pushing to dev environ on Netlify.
Today, it seem like bolt has no idea how to update supabase. I see the changes in code, such as adding a new column to a table. The new column never appears in the actual database on supabase.
SOLUTION:
I needed to be running supabase CLI from OUTSIDE the bolt container.
SO now, the project is on a folder on my desktop. I sync from bolt to that folder. From that folder, in the terminal, run supabase db push to push the migration files. I’m hoping that the codebase gets pushed via the git push separately.
I’m still working on a less cloogey way to do this but wanted to claim a small victory. If anyone has a cleaner method I’d love to hear about it. As I work through my own process and refine it, I’ll update.
Good timing, I just wanted to do the same as you and startet a video series on it an hour ago.
Next Video is then netfliy, followed by supabase for login and persist webapp data. I did not use it very often till now (supabase), but I did you just remove everything in supabase manually and let it recreate it, what is no solution when data is already it, but for testing ok.
Need to check our solution as well as see if there is a better one.
For the future the native supabase integration for bolt is planned as it is in bolt.new already, to get a seamless integration/workflow.
Love your vids, thank you! It seems like when pushing code to github and then to netlify, the migrations folders do not get applied to supabase - so the manual process through the CLI is the way, for now. I’ve ben able to add columns to existing tables with no data loss or problems, and will be testing and pushing lots of changes this week. Looking forward to your videos and also to the simplified push to supabase button in bolt.DIY. Cheers!
Forgot to mention, the original app was built with bolt.NEW and imported into DIY via a folder. That’s why the supabase data and connection was there, just not updating.