N
Nuxt2y ago
tierra

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
},
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.
2 Replies
tierra
tierraOP2y ago
Mhm anyone has suggestions for a working swr mode on Netlify?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server