Adding SQL Connector db connection option to enable SQL Auth#95
Merged
evanpetzoldt merged 1 commit intomainfrom Mar 17, 2026
Merged
Adding SQL Connector db connection option to enable SQL Auth#95evanpetzoldt merged 1 commit intomainfrom
evanpetzoldt merged 1 commit intomainfrom
Conversation
✅ Deploy Preview for f3-the-codex-demo ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
taterhead247
approved these changes
Mar 16, 2026
taterhead247
left a comment
There was a problem hiding this comment.
it works on netlify (which I don't think is a valid test) and the code seems reasonable.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces support for connecting to a PostgreSQL database using either a direct TCP connection or the Google Cloud SQL Connector, controlled by a new environment variable. The changes add configuration options for both modes, update environment files, and integrate the Cloud SQL Connector library.
Database connection mode support:
DB_CONNECTION_MODEenvironment variable to.env.exampleandapphosting.yamlto switch between "direct" and "connector" modes. [1] [2]src/lib/db.tsto initialize the PostgreSQL connection pool using either a direct TCP connection (DATABASE_URL) or the Cloud SQL Connector, based onDB_CONNECTION_MODE. [1] [2]Cloud SQL Connector integration:
.env.exampleandapphosting.yamlfor configuration (e.g.,CLOUD_SQL_CONNECTION_NAME,DB_USER,DB_PASSWORD,DB_NAME,CLOUD_SQL_IP_TYPE). [1] [2]@google-cloud/cloud-sql-connectordependency topackage.json.