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

Nextjs 15.1 not saving Static Content on Redis on build time using instrumentation using @neshca/cache-handler #74958

Open
joanaavelar opened this issue Jan 16, 2025 · 0 comments
Labels
Instrumentation Related to Next.js Instrumentation.

Comments

@joanaavelar
Copy link

Link to the code that reproduces this issue

https://codesandbox.io/p/devbox/priceless-hill-52c3m3

To Reproduce

  1. Update url from cache-handler with your Redis instance
  2. yarn install
  3. yarn build
  4. Verify that no key exists for /index in Redis
  5. yarn start
  6. Verify that no key exists for /index in Redis, but /xpto in Redis exists
  7. Go to the browser and open => http://localhost:3000/
  8. Verify that /index key exists in Redis

Current vs. Expected behavior

I was expecting to have /index and /xpto after yarn build. I don't have anything being saved.
I was expecting to have /index also after yarn start. I only have /xpto being saved.

Provide environment information

Operating System:
  Platform: win32
  Arch: x64
  Version: Windows 10 Enterprise
  Available memory (MB): 32401
  Available CPU cores: 12
Binaries:
  Node: 22.4.1
  npm: 10.9.0
  Yarn: 1.22.22
  pnpm: N/A
Relevant Packages:
  next: 15.1.4 // Latest available version is detected (15.1.4).
  eslint-config-next: N/A
  react: 19.0.0
  react-dom: 19.0.0
  typescript: N/A
Next.js Config:
  output: standalone

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

Instrumentation

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

next build (local), next start (local)

Additional context

I was expecting to use instrumentation implementation and have Redis cache being populated with pre-rendered pages on build time, but it's only happening on start time. Besides that, I am unable to save the pre-rendered page if my page is on the root of the app, meaning app/page.tsx.
This issue happens both in 15.1 and 14.2.17 next versions.

@joanaavelar joanaavelar added the bug Issue was opened via the bug report template. label Jan 16, 2025
@github-actions github-actions bot added the Instrumentation Related to Next.js Instrumentation. label Jan 16, 2025
@samcx samcx removed the bug Issue was opened via the bug report template. label Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Instrumentation Related to Next.js Instrumentation.
Projects
None yet
Development

No branches or pull requests

2 participants