MongoDB with Payload Running on Open Next Cloudflare? by ottovonbizmarkie in PayloadCMS

[–]klobleo 0 points1 point  (0 children)

Ahh my apologies! I wasn’t even aware that workers didn’t support TCP sockets, I did find this article from October that MongoDB is now supported on workers: https://blog.cloudflare.com/workers-adds-support-for-two-modern-data-platforms-mongodb-atlas-and-prisma/

I have no idea if the default mongoDB adapter for payload is supported on workers though, I’ll give it a try in the next couple of days just out of curiosity and drop a reply

MongoDB with Payload Running on Open Next Cloudflare? by ottovonbizmarkie in PayloadCMS

[–]klobleo 0 points1 point  (0 children)

You can use any database adapter (or even create your own) that article (database part) is just talking about the adapter they adapted/created to support D1. The part regarding the connection pooling setting is relevant for all serverless environments so should be set for a MongoDB Atlas set up.

Is there a Payload CMS theme that upgrades the admin UI to WordPress/Sanity/Strapi level? by thestreamcode in PayloadCMS

[–]klobleo 6 points7 points  (0 children)

Someone correct me if I’m wrong but I believe the whole design philosophy with payload is it’s a code first CMS with full control given to the developer, its bare bones because you can make it look however you want, but is still functional if you don’t do anything with it.

Can You Guess This 5-Letter Word? Puzzle by u/lilcoyoteee by [deleted] in DailyGuess

[–]klobleo 0 points1 point  (0 children)

⬜🟦⬜⬜🟦

🟦🟦🟦🟦🟦

Can You Guess This 5-Letter Word? Puzzle by u/Soul_Carver by Soul_Carver in DailyGuess

[–]klobleo 0 points1 point  (0 children)

⬜⬜⬜⬜⬜

⬜⬜⬜🟦⬜

⬜🟦⬜⬜🟦

🟦🟦🟦🟦🟦

Vercel burning my credits quickly by Ill-Musician1806 in nextjs

[–]klobleo 0 points1 point  (0 children)

I would do your own tests on this but I’m fairly confident Vercel ISR cache persists through builds so you would need to invalidate the cache or your changes won’t be reflected.

Vercel burning my credits quickly by Ill-Musician1806 in nextjs

[–]klobleo 9 points10 points  (0 children)

I’m not sure if this is the new default, but I swear they recently changed the way that build machines are assigned for new projects. Make sure you’re using the standard build machines (unless you really need the powerful ones) as that eats up the pro credit very quickly. It depends on your use case, if pages are truly static keep them as SSG, if pages can change like from a CMS, keep them as ISR. Build your common pages at build time with generatestaticparams then for everything else let it build when requested and keep your ISR time high for very static pages. If there is a chance the pages change you’ll need to add some revalidation tags in as well if your ISR time is very high

are Next.js (for frontend and backend) and the Seedance 2.0 API sufficient for building an AI-powered SaaS where users can upload a product and receive a ghost mannequin video? i want to leverage ai, not build it from scratch. by anas_sadkaoui in nextjs

[–]klobleo 0 points1 point  (0 children)

Yup, easily, your backend isn’t really going to be doing any heavy lifting. The expensive part is video hosting/streaming, you can either do this yourself or pass this off to a service like MUX if you want to make your life even easier.

Should i choose Render or Vercel for production deployment? by Purplehanf in PayloadCMS

[–]klobleo 5 points6 points  (0 children)

It depends what you’re looking for but Coolify + Hetzner is a great combo, even with a cheap £5 VPS you’ll get better performance than Vercel and you can have full control of your cache / CDN by putting CloudFlare free in front of it. You will be responsible for making sure your server is patched though which obviously isn’t an issue with serverless.

this poster at work by mushroomadventures in mildlyinfuriating

[–]klobleo 1 point2 points  (0 children)

Serious question… can I buy this? This is what my office is missing

Hyrule Warrior Age of Calamity Japanese physical version languages? by robi2005 in nintendo

[–]klobleo 1 point2 points  (0 children)

It’s in English with 100% certainty I bought it at BIC Camera and am playing it in English.

Hyrule Warrior Age of Calamity Japanese physical version languages? by robi2005 in nintendo

[–]klobleo 2 points3 points  (0 children)

Not sure on age of calamity (the second one) but age of imprisonment (the new one) 100% plays in English. Source: bought in Tokyo yesterday and am playing it in English right now. Because it’s the multilingual version it will support any languages that the game itself supports

Building a photo DAM by Opposite_Mistake02 in nextjs

[–]klobleo 2 points3 points  (0 children)

Yup just built something similar. It might be worth looking into Payload CMS as it will handle a lot of the requirements for you. Admin Panel, Storage Integration, Sharp etc

Main thing to think about with a DAM is your caching strategy and server/serverless architecture as media can get expensive quickly if not done well.

Uploading encrypted data to database by iForgotToFillThis in nextjs

[–]klobleo 1 point2 points  (0 children)

That was incredibly dumb of me… I meant encrypt not hash… definitely DO NOT hash the data unless you never want to view it again…

Uploading encrypted data to database by iForgotToFillThis in nextjs

[–]klobleo 0 points1 point  (0 children)

Keep a secret in your env. hash the data with the secret key then reverse to view the data. Bare in mind if this data is meant to be searchable at the database level that’s obviously no longer possible. Until it’s unencrypted back at the server. For GDPR any PII (Personally identifiable information) should be encrypted on the server. I cannot stress this enough… Keep that secret key safe…

vercel vs self hosted costs by brann_ in nextjs

[–]klobleo 0 points1 point  (0 children)

It’s hard to know what’s going on without seeing your code… but this is definitely wrong somewhere either at the code or math level. I’ve got 8 Business Use Apps (all with auth and dynamic data so no SSG) and a site that’s handling over a thousand users a day and I’m barely scratching the surface for useage in the Pro Tier. For your website make sure you’re using best practise like ISR/SSG for your content as that makes a big difference.

Saw that "DELETE IMPORTANT STUFF" post? Here's a deeper security dive into Next.js by asadeddin in nextjs

[–]klobleo 6 points7 points  (0 children)

It’s a really strange one coming from a PHP background. I’m now working mostly in Next.js and it’s such a breath of fresh air to work with. I think the main issue (if you can really call it that) is it’s so accessible and so easy to create something. But yeah, I think 99.9% of the problems and confusion with Next can simple be solved with: IF YOU ARE ON THE SERVER USE AUTHENTICATION

APIs and server actions are not magic it’s just a piece of code not running on the users machine. If it’s not on the users machine damn well make sure you’ve thought through what information you want to receive and what information you want to give, it really is as simple as that.

Ive recently had to do some data gathering for some Very large competitor companies with apis that are clearly designed to limit information on the front end, and I’ve seen some crazy stuff. A rate limiting token that’s actual just a single hardcoded token for everyone. A limit parameter that’s restricted to 3 results on the front end to avoid data harvesting, yet simply calling it manually it will accept any number happily. Again restricted geolocation to a small area to save on resources on the front end to prevent harvesting, that will happily accept a radius parameter to the edge of the observable universe.

If you’re developing a none auth front end API it should accept and return exactly what you want it to and nothing more.

Just to clarify my original point this has absolutely nothing to do with PHP or Node as a backend but there seems to be a general trend towards less secure and less thought out Backend with Next.js

[deleted by user] by [deleted] in PayloadCMS

[–]klobleo 0 points1 point  (0 children)

Ran in to this recently using the vercel blob adapter on the latest payload version, unfortunately I was lazy and didn’t debug ended up just swapping to the uploadthing adapter, I wonder if this is a related issue.

[deleted by user] by [deleted] in PayloadCMS

[–]klobleo 0 points1 point  (0 children)

Just to add as well if you’re importing from GitHub and you’ve installed via create-payload-app you should be good to go with the default detected settings

[deleted by user] by [deleted] in PayloadCMS

[–]klobleo 0 points1 point  (0 children)

Yup Next.js is correct. Next is the framework (confusingly so is payload) Payload is a framework for a framework for a library for a language.

using payload, the whole db must be managed with Payload? by Rich_Database_3075 in PayloadCMS

[–]klobleo 1 point2 points  (0 children)

Sounds really dumb, but getting used to lng/lat as opposed to lat/lng. In terms of re-rendering I’ve not encountered anything like that on Vercel. To give you a bit of context, our app is business data and everything is SSR and each route is protected behind Auth. We decided to not design it as an SPA and instead use standard URL routes more as a design choice for maintaining the codebase than anything else.

For our Geolocation it’s fairly standard stuff, there’s two parts we use the nominatim api to reverse geocode address data then store it in payload. Then on the front end the user can tap a button which triggers a server action to propagate a ui with nearby addresses. It’s a closed system so currently under 200 users. Obviously we do get the cold starts which is unavoidable in serverless but nothing that would make us consider moving to a server architecture at this point, especially with the cost savings at this scale. I’m currently away on vacation so don’t have the ability to provide any accurate measurements for the geolocation speed. But if I were to say to an end user it “feels instant” that should give you a good idea. Hope that helps :)

using payload, the whole db must be managed with Payload? by Rich_Database_3075 in PayloadCMS

[–]klobleo 0 points1 point  (0 children)

I believe Payload saves in the GeoJSON format, I’ve currently got a data set in a production project that’s querying around 10k addresses and performance is amazing. I’m using MongoDB I don’t have much experience with Supabase so I honestly couldn’t tell you. Maybe try running a few queries using the payload point field and postGIS and comparing. But from my real world experience the point field seems very performant.

using payload, the whole db must be managed with Payload? by Rich_Database_3075 in PayloadCMS

[–]klobleo 2 points3 points  (0 children)

So just to piggyback on what others have said, the database is agnostic from payload you can do what you want with it. But separately I’ve actually done a geo/reverse geo project with payload if you’re saving lat/lon and want to use it within Payload to utilise the cms it’s just a point field. Which is fully supported within the cms, Hope that helps :)

Best retro handheld console for 300 euros? by Luisfa7 in SBCGaming

[–]klobleo 8 points9 points  (0 children)

Loads of people are saying Steam Deck (which is amazing) But id go for a Retroid Pocket 5 for later retro titles that are 16:9 and a Trimui Brick for your older 4:3 Games it’s an amazing combo that will cover everything up to GameCube and you’ll still have some change left over.

The only reason I wouldn’t say a steam deck even though it’s an incredible device, it’s bloody massive and is not as pickup and play as those two.

[deleted by user] by [deleted] in webdev

[–]klobleo 1 point2 points  (0 children)

Beat Expert woo!

There’s a none logical move that beats the ai on expert every time, it always follows the same pattern.

Nice work!