Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Environment aware routeRules - Nuxt
N
Nuxt
•
5mo ago
•
10 replies
Samuelreichoer
Environment aware routeRules
I have this routeRules
:
routeRules
: {
'/**'
: {
cache: {
swr:
true
,
staleMaxAge:
30
,
},
},
},
routeRules
: {
'/**'
: {
cache: {
swr:
true
,
staleMaxAge:
30
,
},
},
},
They work as expected in production
, but I don
't want the swr enabled in dev mode
. How can I make this environment aware
?
Nuxt
Join
Nuxt Community Chat Server
31,686
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
routeRules help
N
Nuxt / ❓・help
13mo ago
Prerender RouteRules clarification
N
Nuxt / ❓・help
2y ago
Nitro routeRules shouldInvalidateCache
N
Nuxt / ❓・help
3y ago
Nuxt Security routeRules csurf
N
Nuxt / ❓・help
5mo ago