Skip to content

Commit

Permalink
templates: corrects database env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
r1tsuu committed Oct 16, 2024
1 parent 7019f22 commit 65cb939
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion templates/vercel-postgres/.env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
POSTGRES_URL=postgres://127.0.0.1:5432/payload
DATABASE_URI=postgres://127.0.0.1:5432/payload
PAYLOAD_SECRET=
BLOB_READ_WRITE_TOKEN=vercel_blob_rw_examplestoreid_somethingelse
2 changes: 1 addition & 1 deletion templates/vercel-postgres/src/payload.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default buildConfig({
collections: [Users, Media],
db: postgresAdapter({
pool: {
connectionString: process.env.POSTGRES_URL,
connectionString: process.env.DATABASE_URI,
},
}),
editor: lexicalEditor({}),
Expand Down
4 changes: 2 additions & 2 deletions templates/with-vercel-mongodb/.env.example
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
MONGODB_URI=mongodb://127.0.0.1/payload-template-blank-3-0
PAYLOAD_SECRET=YOUR_SECRET_HERE
DATABASE_URI=mongodb://127.0.0.1/payload-template-blank-3-0
PAYLOAD_SECRET=YOUR_SECRET_HERE
2 changes: 1 addition & 1 deletion templates/with-vercel-mongodb/src/payload.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default buildConfig({
outputFile: path.resolve(dirname, 'payload-types.ts'),
},
db: mongooseAdapter({
url: process.env.MONGODB_URI || '',
url: process.env.DATABASE_URI || '',
}),
plugins: [
vercelBlobStorage({
Expand Down
4 changes: 2 additions & 2 deletions templates/with-vercel-postgres/.env.example
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
POSTGRES_URL=mongodb://127.0.0.1/payload-template-blank-3-0
PAYLOAD_SECRET=YOUR_SECRET_HERE
DATABASE_URI=mongodb://127.0.0.1/payload-template-blank-3-0
PAYLOAD_SECRET=YOUR_SECRET_HERE
2 changes: 1 addition & 1 deletion templates/with-vercel-postgres/src/payload.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default buildConfig({
},
db: vercelPostgresAdapter({
pool: {
connectionString: process.env.POSTGRES_URL || '',
connectionString: process.env.DATABASE_URI || '',
},
}),
plugins: [
Expand Down

0 comments on commit 65cb939

Please sign in to comment.