Michael Jay
08/02/2022, 4:56 AMLloyd Richards
08/02/2022, 6:31 AMDATABASE_URL=mysql://${DB_USER}:${DB_PASS}@${DB_HOST}/${DB_DATABASE}?socket=/cloudsql/${CLOUD_SQL_INSTANCE_CONNECTION_NAME}&connection_limit=50&pool_timeout=30
In order to develop locally though, you will need to have a .env with this inside, and another .env.local without the socket so that you can connect to CloudSQL locally.
And when you do any kind of prisma.schema manipulation then you'll need to remove the socket part manually before you can migrate/push/pull.Michael Jay
08/02/2022, 1:57 PMMichael Jay
08/03/2022, 5:03 PMLloyd Richards
08/03/2022, 5:25 PMLloyd Richards
08/03/2022, 5:26 PM