Correct setup for `swr`
I have a question: Why is the setup below not working?
pages/index.vue
server/api/data.get.js
nuxt.config.js
This works below, but then I have to still do data fetches on every visit / route. But ideally I thought swr
would just fetch once every 60s or whatever and keep a static page?
nuxt.config.js
1 Reply
I've deployed a test on Netlify with these settings
also, it looks like the page data is not updating after the routes from
nuxt-link
https://euphonious-melomakarona-134f3d.netlify.app/