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

Route rules swr/caching not working #15595

Closed
LouisHaftmann opened this issue Dec 23, 2022 · 1 comment
Closed

Route rules swr/caching not working #15595

LouisHaftmann opened this issue Dec 23, 2022 · 1 comment

Comments

@LouisHaftmann
Copy link
Contributor

LouisHaftmann commented Dec 23, 2022

Environment

  • Operating System: Darwin
  • Node Version: v18.12.1
  • Nuxt Version: 3.0.0
  • Nitro Version: 1.0.0
  • Package Manager: pnpm@7.18.2
  • Builder: vite
  • User Config: nitro
  • Runtime Modules: -
  • Build Modules: -

Reproduction

https://github.com/LouisHaftmann/nuxt3-ssr-caching-issue

Describe the bug

The swr/static nitro route rules don't work.

Additional context

This issue occurs when building with the node-server preset (haven't tried other presets). I believe the problem is caused by this line from nitro because it only matches the /** route. So all the other route rules are ignored.

Logs

No response

@manniL
Copy link
Member

manniL commented Dec 23, 2022

Node server preset does not support static nor SWR yet. Follow along unjs/nitro#603 for that ☺️

@manniL manniL closed this as not planned Won't fix, can't repro, duplicate, stale Dec 23, 2022
@danielroe danielroe added the 3.x label Jan 19, 2023
@danielroe danielroe transferred this issue from nuxt/framework Jan 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants