Replies: 7 comments 6 replies
-
|
Hi, how did you verify this? I just did a quick test and am seeing the same behavior in Note, if a page uses CleanShot.2025-01-16.at.13.49.20.mp4 |
Beta Was this translation helpful? Give feedback.
-
|
hey @ijjk , apologies for the delay, I've been pretty sick lately, I replicated this in a blank slate and I hope it's intuitive enough for you. I can also share the dummy repo I used for this. 14.2.23: 14.1.3: |
Beta Was this translation helpful? Give feedback.
-
|
Okay, so I had a suspicion that it could be middleware related and it is. After disabling it, the refresh does not happen. This is what I am using for middleware: I'll just push the repo for easier debugging, one sec |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
Hey @ijjk any chance you could take a look? |
Beta Was this translation helpful? Give feedback.
-
|
We tried again today with 14.2.20 and sadly had the same results again. Requests spiked a ton and replicas scaled to the max so we had to revert again. |
Beta Was this translation helpful? Give feedback.
-
|
Hi, so this working when middleware is configured on If you really want the behavior you were seeing in You could also achieve the above shown behavior with skew protection which is available by default on Vercel and avoids the described pitfall since it actually serves the data from the older build so they match. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
Hey folks,
I'm trying to identify what is causing (and if I can disable this somehow) in deployments done on Next 14.2.20 on for example
_next/data/[hash]/[name].jsonroutes to 404 and trigger a full reload of the application on any subsequent navigation done, this is sadly causing a lot of load and strain on backend services with a plethora of users all refreshing at the same time as well as lots of 404 spikes in metrics, this happens with or without the usage ofdeploymentIdand withgenerateBuildId.On 14.1.3 and Next 13 (which was what I was on before), this hard/full reload of the page does not seem to happen at all.
I can reproduce this in the following steps:
I'm just curious if this is intended behaviour and if there's a way to opt-out of this at all.
PS: I am running a
output: standaloneapplication and self-hosted, not running in any platform like Vercel's own nor Netlify.Thanks!
Additional information
No response
Example
https://github.com/zGrav/dummy-debug-nextjs-refresh
Beta Was this translation helpful? Give feedback.
All reactions