1
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:
2024-02-27 17:34:48 -05:00
parent 2de3914449
commit 4bef13f4ab
11 changed files with 102 additions and 110 deletions

View File

@@ -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;