Skip to content

Direct navigation to ISR redirects to /{url}-isr Vercel #33316

Description

@Strift

Environment

  • Nuxt: ^4.1.2
  • Nitro: 2.12.6
  • Node.js: 22.x (Vercel)
  • Package manager and version: [email protected]
  • Deployment target: Vercel

Reproduction

  1. Add route rules to nuxt.config.ts
  routeRules: {
    '/schedule': {
      isr: 60 * 5,
    }
  },
  1. Deploy on Vercel (vercel preset + fluid computed enabled)

  2. Navigate to:

  • previewurl.com/schedule -> doesn't work 🚨
  • previewurl.com/schedule/ -> does work
  • client side navigation to /schedule -> does work

Describe the bug

  • I'm using Nuxt route rules to enable ISR for the /schedule route.
  • Client-side navigation (clicking a link to /schedule) works: first hit generates the page, subsequent hits are served from cache as expected.
  • Direct navigation (typing the URL in the browser or hard-refresh) fails: the server redirects to /schedule-isr, which returns 404.

Additional context

This Reddit user seems to be facing the same issue: https://www.reddit.com/r/Nuxt/comments/1nik9nz/comment/ng61w70/?context=1

Logs

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions