Replies: 37 comments 122 replies
-
Would this mean |
Beta Was this translation helpful? Give feedback.
-
These two I am incredibly excited for! Will there be additional decoupling for the server side endpoints? Would it be possible to run Payload's REST and GraphQL endpoints through another http framework via adapters? Like Nitro, Fastify and UWS? |
Beta Was this translation helpful? Give feedback.
-
So I could still drop payload into any already existing express server, or will it only work with nextJS apps? |
Beta Was this translation helpful? Give feedback.
-
Integrating payload into Next.js would be amazing. Smaller developers can take advantage of hosting both payload and the website on a serverless platform like vercel. This means less expenses as hosting an always running express server costs. |
Beta Was this translation helpful? Give feedback.
-
To be honest, I am a bit sceptical about this rewrite. It is known that the NextJS apps are not easy to self host if you are not on Vercel platform. I know there are many NextJS developers which would greatly benefit from this seamless integration. However, it would be much harder for everyone else. My problem is that if you would want to run Payload in a serverless environment you would end up with just one viable option: NextJS. Or deploy it as an Express app and skip serverless. Maybe the best option is to release Payload as a set of functions that together with some integration create a proper CMS. I thought something similar happened with current payload-next package. You end up with just some routes that handles Payload's stuff and rest is typical NextJS application. Why not keep this approach and just create the same "almost native" integration for other frameworks? You can maybe keep current NextJS integration and create another (similar) one as an Vite plugin. That way you would support most frameworks out there. Or create support for each one them individually, if the Vite plugin would not be suitable. I see similar approach taken in the databases. You had only MongoDB support, but then you created abstraction that allows you to use any database with proper adapter. What do you think about that? |
Beta Was this translation helpful? Give feedback.
-
Will it be possible to deploy it in vercel using vercel postgres? Not having to deal with databases for a cms would be a gamechanger |
Beta Was this translation helpful? Give feedback.
-
Can't wait for this combination |
Beta Was this translation helpful? Give feedback.
-
Hi, when approximately it will be done? |
Beta Was this translation helpful? Give feedback.
-
Maybe that's too late but, why not Astro instead of Nextjs? I believe (correct if I'm wrong because I'm pretty new to PayloadCMS) astro would provide the same benefits of Nextjs but also it would bring a lot more people from other community other than React. I believe Astro works very well with serverless, file-based routing, ssr, etc but you can choose any frontend framework like Vue, Svelte. Maybe this would be a dream? Not mentioning the possibility to use any of them together and the performance of astro. Does this all make sense to someone? I love Svelte and would love to be able to deploy Payload with Svelte in serverless or edge functions on Vercel. |
Beta Was this translation helpful? Give feedback.
-
I'm about to start working on a new app for a client and I'm considering using Payload for it. Ultimately, I want to build a NextJS app with Payload... should I wait until the beta period? I'm concerned about a length migration down the line if I start building on Payload today. @zubricks and @jmikrut could you maybe speak to what sort of breaking changes or migration path one should expect (at a high-level, not holding you to these decisions)? |
Beta Was this translation helpful? Give feedback.
-
I will admit, I am a bit hesitant of the Next.js move but that could easily be because I am far more comfortable in Express.js than Next.js (a pathetic excuse I am sure). But I trust you all that are behind this decision and am excited to see Payload continue to evolve! I do have some questions though. I saw above the mention of a new auth strategy. Will there be a way to implement our own strategies in Next.js similar to how we could drop in another Passport.js strategy now? Also, is this still planned to have a beta in early-ish 2024? Would love to really explore more. |
Beta Was this translation helpful? Give feedback.
-
I have a production app running express with payload. Will this continue to work and receive updates? I'm using it currently as an API + the editor functions on the admin, but its not using nextjs. In this case if payload migrates to nextjs this setup will work as well or i will need to remove express and deploy it with a nextjs app to vercel or somewhere else? |
Beta Was this translation helpful? Give feedback.
-
As per my understanding, your specific scenario
wont suffer at all unless you have custom passport related things in your
app.
…On Thu, 11 Jan 2024 at 15:22, Márk Pap ***@***.***> wrote:
I have a production app running express with payload. Will this continue
to work and receive updates? I'm using it currently as an API + the editor
functions on the admin, but its not using nextjs. In this case if payload
migrates to nextjs this setup will work as well or i will need to remove
express and deploy it with a nextjs app to vercel or somewhere else?
—
Reply to this email directly, view it on GitHub
<#4202 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA6KJV45H5T75ZXNDCQCWGLYN77SFAVCNFSM6AAAAAA7QGYF5SVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DAOJXGMYDK>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I had a quick look at the POC branch. Is the Next.js implementation still using the pages router and not yet the app router? If yes, why? |
Beta Was this translation helpful? Give feedback.
-
Hey everyone, just wanted to give a quick update on the progress here. We're making significant headway on this. The current state of the app is that its rendering properly in Next.js, you can navigate around the admin panel, and we've officially achieved successful builds. We've since deployed a POC to Vercel to test out cold starts (which appears to be fast). From here, we're continuing to wire up server actions and continuing to migrate all remaining field types to SSR. We still need to wire in GQL (among other things) but the entire HTTP layer is now completely handled in Next. We're still on track to have beta packages available this quarter for everyone to try out. Here's a brief update on each of the main requirements listed in the original discussion:
We will provide a complete breakdown once we get closer to release, along with a migration doc that lists all breaking changes (there's not as many as it might seem). For anyone just jumping in here, this comment from @jmikrut is very informational and worth a quick read. One of the things I'm most excited for in this work is how Payload will no longer be included in the client-side bundle. This means that any business logic that might have been contained in your conditional logic, validation functions, etc will be completely inaccessible to the client. The Payload config is now dynamically split between client and server components. This also means that Webpack aliasing will be a thing of the past (listed above) and we will longer be maintaining our own bundler pattern (meaning we can focus more on core product). Plus, the Payload Local API will be directly available in your components. This is a huge optimization. RSC ftw. I'll post another update here in the coming weeks. Stay tuned! |
Beta Was this translation helpful? Give feedback.
-
Excited to see Payload 3.0 beta with Next.js while it cooks for a new months |
Beta Was this translation helpful? Give feedback.
-
I am trying to choose a cms and I am attracted to the unopinionated nature of Payload, but this thread concerns me because I do not want to have to learn yet another environment (next) just to use it. Are you talking about just switching the admin panel from react (which I also do not use and do not want to learn) to next? I don't care what the admin panel is written in because I don't intend to screw with it, I just want to not be locked into a framework for deployment and my front end. I was hyped about Payload but now I'm confused. Please remain unopinionated. |
Beta Was this translation helpful? Give feedback.
-
With sharp becoming an optional dependency, what does that mean if we want to host with Vercel but still have automatic image size/format generation? I currently generate an AVIF and WEBP version of the image, each with 3 smaller resolutions to populate out a srcset for my frontend so I can tell my editors "just throw the full-resolution image up there". |
Beta Was this translation helpful? Give feedback.
-
And that would be the "alpha" branch, I assume. I think I will clone it and give it a shot |
Beta Was this translation helpful? Give feedback.
-
Hey all! Here's another progress report. If you were unable to join our Discord community call—WE'RE OFFICIALLY IN ALPHA 🎉. Here's a breakdown of what this means exactly: You can start playing around with the alpha package now. BUT our tests suites are not 100% passing yet (we're working hard on this) so please don't use this in production just yet (I know some of you will still try anyway). There are some bugs that we are aware of are features that are not yet completed. Once our test suites are fully passing, we will immediately release a beta version. If you like living on the edge, that might be a better time for you to work on a (semi)real project with it. We will officially go to 3.0 stable once beta has had adequate time to cook. Alpha demo here: https://github.com/payloadcms/payload-3.0-alpha-demo. We're releasing new alpha versions almost daily, so if you're using this demo, please update to latest often. If you experience any issues, feel free to open a new ticket in that repo. Highlights:
That's all for now. I'll post more updates as they come in! |
Beta Was this translation helpful? Give feedback.
-
When Payload is a next.js app will it be able to run as a static export or SPA, or will it need a server? I think for my use case, a static next.js export with an nginx server would be the best setup - if I can run Payload that way. I suspect my questions show that I still don't really understand all of this. |
Beta Was this translation helpful? Give feedback.
-
I really love how this gives us the possibility to simply deploy Payload and the Site or App that consumes its content in one go on serverless environments - If your App that consumes the page is built on nextjs aswell. |
Beta Was this translation helpful? Give feedback.
-
Hey, stumbled upon this. I have a quick question. Once we can use it without needing express server, but simply in the nextjs app router, how will the authentication look. Why I am asking, I am looking for a simplified solution, for building company pages, i don't need authentication with it, but if I would provide CMS for them, i need to provide authentication also. What i am asking is how easy will it be to do that, will the auth feature will be there out of the box, or Will i have to do that myself with different providers like auth.js and so on. Thanks for your work, love what you are doing here! |
Beta Was this translation helpful? Give feedback.
-
When Next js version launch any ETA? |
Beta Was this translation helpful? Give feedback.
-
Beta has arrived! 🚀 More here: https://www.youtube.com/watch?v=CZ7a-dx3Glw |
Beta Was this translation helpful? Give feedback.
-
Great work on 3.0. I have 2 issues to report
|
Beta Was this translation helpful? Give feedback.
-
I have questions about the upload collection - it seems staticURL has been removed from the configuration. If you are uploading images to an external provider, how do you map the backend to the URLs? It is currently mapping <PAYLOAD_URL>/media/ to the objects even though I have disabled local storage. |
Beta Was this translation helpful? Give feedback.
-
I got a question I didn't see on the threat, why not do something like // app/api/payload/[...payload]/route.ts
import payload from "@payload/api"
export { payload as GET, payload as POST }; // app/api/payload/[...payload]/page.ts
import payload from "@payload/page"
export default payload |
Beta Was this translation helpful? Give feedback.
-
@jmikrut I've been closely following the development of Payload 3 and I'm really excited about the features it promises to bring. I was wondering if there's an (roughly) estimated timeline for when a stable version of Payload 3 might be released? Also, is there a specific place (like a roadmap with prioritised issues) where I can keep track of its progress and perhaps be able to contribute to make v3 stable? So far I've found this, but unfortunately it doesn't really give me any insights in terms of prioritisation / actual issues. |
Beta Was this translation helpful? Give feedback.
-
Any update on the stable release? Would be nice to get an estimate |
Beta Was this translation helpful? Give feedback.
-
If we moved Payload from vanilla Express / React to Next.js, we could offload a significant amount of the work we're responsible for and promote a massive degree of simplification.
Everything could be in one repo. Payload endpoints would be opened up directly inside of your Next app folder, right alongside your frontend.
Payload would still be headless, you will still be able to leverage it completely headless just as you do now with Sveltekit, etc. The config would barely change, all of our API endpoints would remain exactly as they are.and the Payload Local API would remain the same.
We would also be able to more easily maintain first-party boilerplates for other frontend frameworks because we won't have to keep up with so many different Next approaches.
*If you still wanted to deploy Payload as a traditional Express server, you could, thanks to Next.js custom server capabilities.
That said, we’ve already started the work to move Payload to Next.js.
Goals
Beta Was this translation helpful? Give feedback.
All reactions