Skip to content

Problem when using ISR passQuery on routeRules when deployed to Vercel #3594

Description

@vincentdorian

Environment

Latest Nuxt version

"dependencies": {
"nuxt": "^4.1.2",
"vue": "^3.5.21",
"vue-router": "^4.5.1"
},

Node 22

Reproduction

I have a small demo deployed on Vercel:
https://pass-query-vercel-e9fs.vercel.app/

Repo:
https://github.com/vincentdorian/pass-query-vercel

Describe the bug

When doing a page reload the following error does show for pages with passQuery used in routeRules:

{
  "error": true,
  "url": "https://pass-query-vercel-e9fs.vercel.app/no-pass-query-isr",
  "statusCode": 404,
  "statusMessage": "Page not found: /no-pass-query-isr",
  "message": "Page not found: /no-pass-query-isr",
  "data": {
    "path": "/no-pass-query-isr"
  }
}

It does append '-isr' to the route.

Additional context

No response

Logs

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions