Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Time to first byte very slow #8896

Closed
matteo-naif opened this issue Oct 28, 2024 · 2 comments
Closed

Time to first byte very slow #8896

matteo-naif opened this issue Oct 28, 2024 · 2 comments

Comments

@matteo-naif
Copy link

Describe the Bug

I deployed my application on Vercel and the load is very slow. If I analyze with a SEO tool I can see that the first javascript bundle request the document and the time to receive it and then load all the resources is very long.

Image

Link to the code that reproduces this issue

Reproduction Steps

I use a catch all page with the following structure
src/app/(app)/(other)/[[...slug]]/page.tsx

In this page I retreive the document content (collection page) with a query of the local api and then I loop the layout made of blocks inside the lexical editor.

The blocks are rendered searching in an object where the key is the string blockType and the value, the server component.

Can you tell me if there is any precaution to avoid it?

Which area(s) are affected? (Select all that apply)

area: core

Environment Info

Binaries:
Node: 20.12.2
npm: 10.5.0
Yarn: 1.22.22
pnpm: 9.6.0
Relevant Packages:
payload: 3.0.0-beta.118
next: 15.0.0
@payloadcms/db-mongodb: 3.0.0-beta.118
@payloadcms/email-nodemailer: 3.0.0-beta.118
@payloadcms/graphql: 3.0.0-beta.118
@payloadcms/next/utilities: 3.0.0-beta.118
@payloadcms/plugin-cloud-storage: 3.0.0-beta.118
@payloadcms/plugin-form-builder: 3.0.0-beta.118
@payloadcms/plugin-nested-docs: 3.0.0-beta.118
@payloadcms/plugin-seo: 3.0.0-beta.118
@payloadcms/richtext-lexical: 3.0.0-beta.118
@payloadcms/storage-s3: 3.0.0-beta.118
@payloadcms/translations: 3.0.0-beta.118
@payloadcms/ui/shared: 3.0.0-beta.118
react: 19.0.0-rc-65a56d0e-20241020
react-dom: 19.0.0-rc-65a56d0e-20241020
Operating System:
Platform: darwin
Arch: x64
Version: Darwin Kernel Version 21.6.0: Mon Jun 24 00:58:06 PDT 2024; root:xnu-8020.240.18.709.2~1/RELEASE_ARM64_T6000
Available memory (MB): 32768
Available CPU cores: 10

@matteo-naif matteo-naif added status: needs-triage Possible bug which hasn't been reproduced yet v3 labels Oct 28, 2024
@denolfe
Copy link
Member

denolfe commented Oct 28, 2024

Hey @matteo-naif , thanks for the issue. This is due to the fact that Vercel using serverless technology and will almost always incur a cold-start. There is not anything we can do on our end here.

@denolfe denolfe closed this as completed Oct 28, 2024
@github-actions github-actions bot removed the status: needs-triage Possible bug which hasn't been reproduced yet label Oct 28, 2024
Copy link
Contributor

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

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 30, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants