NuxtN
Nuxt4mo ago
10 replies
Samuelreichoer

Environment aware routeRules

I have this routeRules:

  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?
Was this page helpful?