SWR Setup Netlify

Hello, can someone help me to understand swr settings for netlify? I would like to have swr settings to let's say refetch every 5min.

nuxt config:
  routeRules: {
    "/": { swr: 5 * 60 }, // TTL in seconds
    "/**": { swr: 5 * 60 }, // TTL in seconds
  },


Netlify Deploy settings are: yarn build and output dist. Somehow the site is doing API requests on every route though. So I don't think swr is actually working.
Was this page helpful?