Deploy your own SWR project with Vercel Now.
Download the example:
curl https://codeload.github.com/vercel/swr/tar.gz/master | tar -xz --strip=2 swr-master/examples/refetch-interval
cd refetch-intervalInstall it and run:
yarn
yarn dev
# or
npm install
npm run devDeploy it to the cloud with now (download)
now
Show how to make SWR fetch the API again in an interval automatically to ensure the data up-to-date.