mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-21 10:21:16 -04:00
use standard email/SMTP for contact form instead of airtable API
This commit is contained in:
@@ -4,9 +4,6 @@
|
||||
// https://nextjs.org/blog/next-9-1-7#new-built-in-polyfills-fetch-url-and-objectassign
|
||||
|
||||
// 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();
|
||||
};
|
||||
const fetcher = <T = any>(...args: Parameters<typeof fetch>): Promise<T> => fetch(...args).then((res) => res.json());
|
||||
|
||||
export default fetcher;
|
||||
|
Reference in New Issue
Block a user