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

Next.js plugin terribly slow #257

Open
jeiea opened this issue Nov 13, 2024 · 5 comments
Open

Next.js plugin terribly slow #257

jeiea opened this issue Nov 13, 2024 · 5 comments

Comments

@jeiea
Copy link

jeiea commented Nov 13, 2024

It increases the dev server startup time from 3 seconds to as much as 15 seconds.

I won't provide a reproducible example; this is just for your information.

Copy link
Member

which next js version?

@jeiea
Copy link
Author

jeiea commented Nov 13, 2024

14.2.5

Copy link
Member

so webpack. would be interesting if turbopack has the same issue. i'll keep the issue open for others to upvote the issue and comment

@jeiea
Copy link
Author

jeiea commented Nov 13, 2024

On my project it was reproducible on both webpack and turbo.

Copy link
Member

Might be this next js "bug" we encountered on discord a while back. https://discord.com/channels/897438559458430986/1245064899739254947/1245649365939392512

  1. Using middleware at all makes the app slower, since pages aren't prerendered.
  2. Accessing (not setting) headers() seems to be very slow. Paraglide-Next uses the headers to pass the locale from the middleware to the app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants