payloadcms / payload

Payload is the open-source, fullstack Next.js framework, giving you instant backend superpowers. Get a full TypeScript backend and admin panel instantly. Use Payload as a headless CMS or for building powerful applications.
https://payloadcms.com
MIT License
23.58k stars 1.5k forks source link

Incorrect package reference for Vercel Postgres database adapter #8139

Closed hampusolsen closed 2 weeks ago

hampusolsen commented 3 weeks ago

Link to reproduction

No response

Environment Info

Payload: `payload@beta` at time of writing, so `beta.100`?
Node.js: v21.6.1
Next.js: 15.0.0-rc.0

Describe the Bug

Thanks for a great product you guys -- absolute ballers! 🍻 Thought I'd help out a bit with a small issue report.

tl;dr

create-payload-app@beta gets stuck installing dependencies because of incorrect package (@payloadcms/db-vercelPostgres@beta) reference, most likely caused by the incorrect value defined in select-db.ts.

Solution

I haven't spent too much time looking at this, but I'd imagine just changing the value to 'vercel-postgres' at the line linked above rather than 'vercelPostgres' would solve the issue~

Though, unsure what kind of repercussions, if any, that might have elsewhere.

Logs

$ pnpx create-payload-app@beta                                                                                        main

...

■  Command failed with exit code 1: pnpm add payload@beta @payloadcms/next@beta @payloadcms/richtext-lexical@beta @payloadcms/plugin-cloud@beta @payloadcms/db-vercelPostgres@beta graphql@^16.8.1
│  Progress: resolved 0, reused 1, downloaded 0, added 0
│   ERR_PNPM_FETCH_404  GET https://registry.npmjs.org/@payloadcms%2Fdb-vercelPostgres: Not Found - 404

...

◐  Installing Payload and dependencies.. # <---- stuck here

Reproduction Steps

Adapters and Plugins

db-vercel-postgres

paulpopus commented 2 weeks ago

Closing as the above has been merged, thanks for your PR!

github-actions[bot] commented 2 weeks ago

This issue has been automatically locked. Please open a new issue if this issue persists with any additional detail.