Lukáš Papcun
Explore posts from serversTTCTheo's Typesafe Cult
•Created by Lukáš Papcun on 5/3/2024 in #questions
Best fully typesafe, fully managed, headless CMS with a generous free tier for Next.js 14.
Hi, what headless CMSes do you like/recommend the most? I recently tried Sanity and did not like it that much as it lacks typesafety so I tried using @sanity-typed with it which improved the DX a whole lot and added typesafety, but it turns out that the Sanity studio does not play very nicely with @sanity-typed. I am looking for a headless CMS, which is fully typesafe, has a premade dashboard to manage content and has a generous free tier. Santiy checked nearly all of these boxes but the lack of proper typesafety was a no go for me. I was thinking about Payload CMS, but it requires me to host a separate express server AFAIK. So I looked into Payload 3.0 Beta which looks great, fully Next.js native - wow exactly what I wanted and I only need to host the db, seems like a no brainer for me, Tho, I do not want to use Beta software and I would really hate starting with V2 and then just shortly after migrate to V3. I would also highly appriciate if the CMS to worked with Cloudinary.
2 replies
How to disable Next.js draftmode in tRPC?
Hi guys, is it possible to disable the Next.js draft mode using tRPC?
I am tryin to achieve something such as this:
But with tRPC, I tried calling
draftMode().disable();
in my tRPC function but nothing happened, draftMode did not get disabled.2 replies
PPrisma
•Created by Lukáš Papcun on 4/24/2024 in #help-and-questions
Prisma not working on middleware even tho the app is being ran on a server.
Hi guys, I keep getting this error when using Prisma with Next.js 14 app, I plan to run my app on a server in a docker container so not edge runtime will be used, but I keep getting this:
How should I fix this error?
2 replies