1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-21 06:01:17 -04:00

bump next to 12.1.0

This commit is contained in:
2022-02-17 19:38:12 -05:00
parent 147128516e
commit 6256223517
8 changed files with 99 additions and 140 deletions

7
lib/helpers/fetcher.ts Normal file
View File

@@ -0,0 +1,7 @@
// very simple fetch wrapper that's passed into SWR hooks:
// https://swr.vercel.app/docs/data-fetching#fetch
// note: fetch does *not* need to be poly/ponyfilled in Next.js:
// https://nextjs.org/blog/next-9-1-7#new-built-in-polyfills-fetch-url-and-objectassign
// eslint-disable-next-line no-undef
export const fetcher = (url: RequestInfo) => fetch(url).then((res) => res.json());