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

Nextjs static site generation extremely slow when using Typography #48788

Closed
Sheap opened this issue May 6, 2024 · 1 comment
Closed

Nextjs static site generation extremely slow when using Typography #48788

Sheap opened this issue May 6, 2024 · 1 comment

Comments

@Sheap
Copy link

Sheap commented May 6, 2024

Reproduction link

https://github.com/Sheap/antd-next-bug

Steps to reproduce

pnpm install
pnpm build

What is expected?

It should build as quickly as when Typography is not used (<1s)

What is actually happening?

It takes ~10 minutes for the initial build attempt to time out. then the subsequent attempt succeeds quickly.

Generating static pages (0/4) ...
⚠ Sending SIGTERM signal to static worker due to timeout of 60 seconds. Subsequent errors may be a result of the worker exiting.
⚠ Restarted static page generation for /documentSearch because it took more than 60 seconds
⚠ See more info here https://nextjs.org/docs/messages/static-page-generation-timeout
⚠ Restarted static page generation for / because it took more than 60 seconds
⚠ Restarted static page generation for /404 because it took more than 60 seconds
⚠ Restarted static page generation for /500 because it took more than 60 seconds
Generating static pages (1/4) 
Generating static pages (2/4) 
Generating static pages (3/4) 
✓ Generating static pages (4/4) 
Environment Info
antd 5.17.0
React 18
System fedora 39
Browser NA

I have the same issue on my gitlab CI pipeline (which builds in an alpine container), suggesting it is not a system specific issue.

I have the same issue when using the page router, suggesting it is not related to the relatively new nextjs app router.

@afc163
Copy link
Member

afc163 commented May 6, 2024

Duplicate of #48758

@afc163 afc163 marked this as a duplicate of #48758 May 6, 2024
@afc163 afc163 closed this as completed May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants