Open xixixao opened 11 months ago
Another reason this is problematic is that this warning can fail a strict build script which doesn't allow warnings.
Is there any update on this? I'm facing the same issue.
Edit by maintainer bot: Comment was automatically minimized because it was considered unhelpful. (If you think this was by mistake, let us know). Please only comment if it adds context to the issue. If you want to express that you have the same problem, use the upvote 👍 on the issue description or subscribe to the issue for updates. Thanks!
Link to the code that reproduces this issue
https://github.com/xixixao/nextjs-cache-no-store
To Reproduce
Current vs. Expected behavior
What I expect
I expect to get no warnings. I specifically expect to not make a
fetch
during static build which hascache: 'no-store'
set. This is important because I might be making a push in this sequence:What I get
The
fetch
still executes during the static build:This might cause errors on my external API service because the new static build might run an API that the my external service isn't supporting yet.
Verify canary release
Provide environment information
Which area(s) are affected? (Select all that apply)
App Router, Data fetching (gS(S)P, getInitialProps)
Additional context
It seems that in the past this kind of error actually failed the build and that's no longer the case, which is good.