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
25.5k stars 1.62k forks source link

Payload admin pannel production is so slow #7493

Closed in3learning closed 3 months ago

in3learning commented 3 months ago

Link to reproduction

https://in3learning-production-x87x.vercel.app/

Payload Version

3.0.0-beta.71

Node Version

"^18.20.2 || >=20.9.0"

Next.js Version

15.0.0-canary.77

Describe the Bug

I deploy this to vercel. The admin pannel is much faster in my localhost and really slow in production and i don't know why.

Reproduction Steps

go to my reproduction link and login as default

email: 'dev@payloadcms.com', password: 'test',

you will see it is really slow

Adapters and Plugins

I am using vercel-postgres and vercel-blob-store

jmikrut commented 3 months ago

Hey @in3learning your reproduction no longer is reachable but this is likely due to Vercel cold starts. On free projects especially, you'll have to wait for your project to warm up and will, once in a while, always experience cold starts. I think on their paid plans they have measures to prevent against experiencing cold starts but it's just a side-effect of AWS Lambda / serverless functions in general.

If you use a separate host like Render, Fly IO, or Payload Cloud, it will be fast just like localhost.

github-actions[bot] commented 2 months ago

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