Conversation
👷 Deploy request for flava-flav accepted. 🔨 Explore the source changes: 848fa6d 🔍 Inspect the deploy log: https://app.netlify.com/sites/flava-flav/deploys/61305daee156f6000831f63d |
PR is currently in draft until Brian can test it out with his own db credentials and verify it works. |
Instructions for setting up and testing a Supabase databaseCreate
|
Checked out on the stream. I think this is good, barring the weird dashboard error. |
Netlify build error
Looks like the same error we got on stream when we needed to delete and reinstall |
Supabase error this time, will want to check environment variables. |
Had another Redwood dev reach out about this bug cause they were running into it as well. Said they figured it out in the command = "DATABASE_URL=$MIGRATE_DB_URL yarn rw deploy netlify"
|
Gonna close this issue out. Redwood's up to v0.47 and it sounds like we're gonna be rethinking what we want to do with Redwood anyway. At this point it would make the most sense to create a new Redwood app in a month or two that's using v1 or if we want to start building before then we can pin to |
What type of PR is this? (check all applicable)
Description
This PR updates the project from Redwood v0.24.0 to v0.36.2. Over the course of these releases we saw the following changes to the framework:
Related Tickets & Documents
Connection pooling with Supabase
In a serverless environment you need to set up connection pooling with a tool like PgBouncer because every function invocation may result in a new connection to the database. Supabase projects now support connection management using PgBouncer and are enabled by default. However, when running migrations you need to use the non pooled connection URL.
When deploying your app, you'll use the pooled connection URL and add the
?pgbouncer=true
flag to the PostgreSQL connection URL.This is a problem for Prisma, as explained by Mahmoud Abdelwahab:
There is an open issue for this on Prisma's GitHub and another issue explaining the problem in more detail.
Mobile & Desktop Screenshots/Recordings
Since PgBouncer was causing issues I tried disabling the Supabase client and connecting the project to a PostgreSQL database on Railway.
Added tests?
I am the one who tests.
Added to documentation?
These are all internal implementation details and from the perspective of an Open Sauced user there should be no change in the behavior of the application.
Are there any post-deployment tasks we need to perform?
Make sure you can connect to Supabase without any weird PgBouncer issues. See previous links for context and workarounds.
What gif best describes this PR or how it makes you feel?