From 73a5de8d305e55a4506fe48a10fdb3f03d9475b4 Mon Sep 17 00:00:00 2001 From: Sarah <144068104+iamawatermelo@users.noreply.github.com> Date: Sun, 20 Oct 2024 23:04:47 +0100 Subject: [PATCH] airtable token in build environment --- src/lib/airtable.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/airtable.ts b/src/lib/airtable.ts index 6814e59..fc13957 100644 --- a/src/lib/airtable.ts +++ b/src/lib/airtable.ts @@ -1,4 +1,4 @@ import { env } from "$env/dynamic/private"; import Airtable from "airtable"; -export default (new Airtable({ apiKey: env.AIRTABLE_TOKEN })).base(env.AIRTABLE_BASE)(env.AIRTABLE_TABLE); \ No newline at end of file +export default (new Airtable({ apiKey: env.AIRTABLE_TOKEN || '' })).base(env.AIRTABLE_BASE)(env.AIRTABLE_TABLE); \ No newline at end of file