Skip to content

Commit

Permalink
fix: database connection string
Browse files Browse the repository at this point in the history
  • Loading branch information
HoreKk committed Jan 25, 2024
1 parent 897ffc3 commit 2205fb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/src/payload/payload.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default buildConfig({
connectionString:
process.env.NODE_ENV !== "production"
? process.env.DATABASE_URL
: `postgresql://${process.env.PGDATABASE}:${process.env.PGPASSWORD}@${process.env.PGHOST}:${process.env.PGPORT}/${process.env.PGDATABASE}?sslmode=disable`,
: `postgresql://${process.env.PGUSER}:${process.env.PGPASSWORD}@${process.env.PGHOST}:${process.env.PGPORT}/${process.env.PGDATABASE}?sslmode=disable`,
},
}),
plugins: [
Expand Down

0 comments on commit 2205fb8

Please sign in to comment.