Skip to content

DATABASE_URI is hardcoded somewhere #6608

@mryellow

Description

@mryellow

Link to reproduction

No response

Describe the Bug

Changing DATABASE_URI to PAYLOAD_DATABASE_URI

Then providing it to db: mongooseAdapter({ url: process.env.PAYLOAD_DATABASE_URI }),.

Results in the string not being used but instead DATABASE_URI MUST be provided under that name.

To Reproduce

Set PAYLOAD_DATABASE_URI and pass to mongooseAdapter.

Payload Version

2

Adapters and Plugins

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions