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

Inconsistent behaviour of revalidatePath between local and Vercel #73013

Open
damianfrizzi opened this issue Nov 20, 2024 · 0 comments
Open

Inconsistent behaviour of revalidatePath between local and Vercel #73013

damianfrizzi opened this issue Nov 20, 2024 · 0 comments
Labels
bug Issue was opened via the bug report template. Internationalization (i18n) Related to Internationalization with Next.js. Middleware Related to Next.js Middleware. Runtime Related to Node.js or Edge Runtime with Next.js.

Comments

@damianfrizzi
Copy link

Link to the code that reproduces this issue

https://github.com/damianfrizzi/next-revalidate-bug

To Reproduce

  • Go to https://next-revalidate-bug.vercel.app and note the number at the top
  • Navigate to "Go to some page" and note the number at the top
  • Go back to homepage and click "Invalidate German" and refresh page
  • Number correctly changes on the homepage
  • BUT number also changes on the "/somePage" route. This shouldn't happen

Current vs. Expected behavior

revalidatePath behaves correctly when using bun build && bun start on my local machine. I.e., invalidating the homepage doesn't invalidate any other (sub) pages.

When deployed to Vercel, invalidating the homepage also invalidates other (sub) pages.

Provide environment information

Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 24.0.0: Tue Sep 24 23:39:07 PDT 2024; root:xnu-11215.1.12~1/RELEASE_ARM64_T6000
  Available memory (MB): 32768
  Available CPU cores: 10
Binaries:
  Node: 20.17.0
  npm: 10.8.2
  Yarn: 1.22.19
  pnpm: N/A
Relevant Packages:
  next: 15.0.3 // Latest available version is detected (15.0.3).
  eslint-config-next: 15.0.3
  react: 19.0.0-rc-66855b96-20241106
  react-dom: 19.0.0-rc-66855b96-20241106
  typescript: 5.6.3
Next.js Config:
  output: N/A

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

Internationalization (i18n), Middleware, Runtime

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

Vercel (Deployed)

Additional context

I'm using trailingSlash: true in my next.config. I suspect that there is an error in connection with this configuration.

@damianfrizzi damianfrizzi added the bug Issue was opened via the bug report template. label Nov 20, 2024
@github-actions github-actions bot added Internationalization (i18n) Related to Internationalization with Next.js. Middleware Related to Next.js Middleware. Runtime Related to Node.js or Edge Runtime with Next.js. labels Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue was opened via the bug report template. Internationalization (i18n) Related to Internationalization with Next.js. Middleware Related to Next.js Middleware. Runtime Related to Node.js or Edge Runtime with Next.js.
Projects
None yet
Development

No branches or pull requests

1 participant