Postgres Adapter throws error: relation "users" does not exist
on Production Builds and Local API
#6244
Labels
error: relation "users" does not exist
on Production Builds and Local API
#6244
Link to reproduction
No response
Describe the Bug
The Postgres Adapter errors due to missing relations (specifically
users
, but others error as well when queried using the Local API), either using the Local API or the built nextjs admin panel.This only errors if
next dev
has never been run.I assume running
next dev
seeds the postgres database so from that point on both the local api, and the admin panel are able to resolve the postgres relations. However this should be able work without seeding the database.To Reproduce
cd
into payloadcms/payload-3.0-demopnpm install
my-route
tries to query the empty postgres database:my-route
:Payload Version
3.0
Adapters and Plugins
db-postgres
The text was updated successfully, but these errors were encountered: