This repository has been archived by the owner on Dec 20, 2024. It is now read-only.
When Next.js is deployed to Vercel, the ISR prefetching of the exact same page is done in triplicate. #291
Locked
johnvonneumann7
started this conversation in
Show & Tell
Replies: 0 comments 1 reply
-
Hey @johnvonneumann7, appreciate you reaching out! We'll close this thread out as a duplicate of #290 but thank you for sharing your use case and context. Keeping this discussion under one roof allows us to make sure that, where necessary, our team can feed back to everybody much easier. Similarly, it allows y'all to collaborate much more effectively! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
#290 Similar questions
I thought there might be a problem on the API server side, but when I ran the
Next.js
project in a local environment, this problem did not occur at all.Specifically,
getStaticProps
is executed in triplicate, and if you check the Function log inVercel
, the log is duplicated.If you look at the Network from Chrome devtools, the
.json
is only loaded once.If you check the access log of the API server, you will see that the exact same API route is accessed three times during prefetching.
We can see that the exact same API route was accessed three times during prefetching.
I've been researching these symptoms for a few days now, but I can't find any information about them.
I have no idea what might be causing it.
I think the problem is in Vercel.
What is it and how can I fix it?
This happens even if I just run
create-next-app
, rewrite index.tsx and add[pk].tsx
。Beta Was this translation helpful? Give feedback.
All reactions