mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-21 06:01:17 -04:00
add accessible skip-to-content link
This commit is contained in:
@@ -3,5 +3,10 @@
|
||||
// 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());
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
const fetcher = async (input: RequestInfo, init?: RequestInit): Promise<any> => {
|
||||
const res = await fetch(input, init);
|
||||
return res.json();
|
||||
};
|
||||
|
||||
export default fetcher;
|
||||
|
Reference in New Issue
Block a user