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
24.81k stars 1.58k forks source link

plugin-stripe / plugin-seo: do not depend on @payloadcms/next for endpoints #7840

Closed r1tsuu closed 2 months ago

r1tsuu commented 2 months ago

Link to reproduction

No response

Payload Version

3.0.0-beta.90

Node Version

20

Next.js Version

15rc

Describe the Bug

Example: Instead of https://github.com/payloadcms/payload/blob/4bbc593dc5936d0f53e036488680c968df20bc2c/packages/plugin-seo/src/index.tsx#L136 we should just do

 const data = await req.json!()

Reason: the Payload config depends on @payloadcms/next and so its peer dependencies. You may want to import the config outside of Next.js, like into a separate Astro website in a monorepo.

Reproduction Steps

.

Adapters and Plugins

plugin-stripe, plugin-seo

paulpopus commented 2 months ago

Fixed in https://github.com/payloadcms/payload/pull/7879

github-actions[bot] commented 1 month ago

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