Skip to main content
GoodFirstPicks
DashboardIssuesReposLeaderboard

GoodFirstPicks by Leaveitblank © 2026

CreatorRequest a RepoPrivacy PolicyTerms of Service
fetch with cache: 'no-store' makes output: 'export' ignoring the page | GoodFirstPicks

fetch with cache: 'no-store' makes output: 'export' ignoring the page

vercel/next.js 2 comments 1mo ago
View on GitHub
mediumopenScope: somewhat clearSkill match: maybeTest focusedNext.jsTypeScriptReact

Why this is a good first issue

Conflict between static export and dynamic fetch behavior needs investigation

AI Summary

The issue reports unexpected dynamic rendering when using fetch with 'no-store' cache option during static export. Maintainer comments suggest this may be intentional behavior. Requires understanding of Next.js static export constraints and fetch caching mechanisms.

Issue Description

Link to the code that reproduces this issue

https://github.com/dominicbachmann/next14-no-store-output-export-bug

To Reproduce

  1. Add output: 'export' to next.config.js
  2. Use fetch with the cache: 'no-store' option on a page
  3. Build the application (npm run build)
  4. Check the output
  5. /some-page is marked as dynamic

Current vs. Expected behavior

I expect that some-page is still generated statically

Provide environment information

Operating System:
  Platform: linux
  Arch: x64
  Version: #1 SMP Thu Oct 5 21:02:42 UTC 2023
  Available memory (MB): 9949
  Available CPU cores: 16
Binaries:
  Node: 18.19.1
  npm: 10.2.4
  Yarn: 1.22.21
  pnpm: N/A
Relevant Packages:
  next: 14.1.1-canary.81 // Latest available version is detected (14.1.1-canary.81).
  eslint-config-next: N/A
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.1.3
Next.js Config:
  output: export

Which area(s) are affected? (Select all that apply)

Static HTML Export (output: "export")

Which stage(s) are affected? (Select all that apply)

next build (local)

Additional context

No response

GitHub Labels

bug

Want to work on this?

Claim this issue to let others know you're working on it. You'll earn 20 points when you complete it!

Risk Flags

  • behavior may be intentional per maintainer comment
Loading labels...

Details

Points20 pts
Difficultymedium
Scopesomewhat clear
Skill Matchmaybe
Test Focusedyes