From 28765e93b78d2ed6998137db1fbfc84732ebb1dc Mon Sep 17 00:00:00 2001 From: Tony Xiao Date: Wed, 11 Oct 2023 16:39:16 -0700 Subject: [PATCH] Adding nango public key also --- apps/app-config/env.ts | 2 ++ apps/cli/_cli.ts | 14 +++++++------- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/apps/app-config/env.ts b/apps/app-config/env.ts index db1acaf5..4d1bda78 100644 --- a/apps/app-config/env.ts +++ b/apps/app-config/env.ts @@ -31,6 +31,7 @@ Pass a valid http(s):// url for stateless mode. Sync data and metadata be sent t NEXT_PUBLIC_CLERK_SUPABASE_JWT_TEMPLATE_NAME: z .string() .default('supabase'), + NEXT_PUBLIC_NANGO_PUBLIC_KEY: z.string(), NEXT_PUBLIC_COMMANDBAR_ORG_ID: z.string().optional(), }, runtimeEnv: overrideFromLocalStorage({ @@ -38,6 +39,7 @@ Pass a valid http(s):// url for stateless mode. Sync data and metadata be sent t INNGEST_EVENT_KEY: process.env['INNGEST_EVENT_KEY'], INNGEST_SIGNING_KEY: process.env['INNGEST_SIGNING_KEY'], NANGO_SECRET_KEY: process.env['NANGO_SECRET_KEY'], + NEXT_PUBLIC_NANGO_PUBLIC_KEY: process.env['NEXT_PUBLIC_NANGO_PUBLIC_KEY'], JWT_SECRET_OR_PUBLIC_KEY: process.env['JWT_SECRET_OR_PUBLIC_KEY'], NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY: process.env['NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY'], diff --git a/apps/cli/_cli.ts b/apps/cli/_cli.ts index 99aa735f..3778fcb2 100644 --- a/apps/cli/_cli.ts +++ b/apps/cli/_cli.ts @@ -38,7 +38,7 @@ if (getEnvVar('DEBUG_ZOD')) { } function env() { - process.env['SKIP_ENV_VALIDATION'] = 'true' + process.env['_SKIP_ENV_VALIDATION'] = 'true' // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access return require('@usevenice/app-config/env') .env as typeof import('@usevenice/app-config/env')['env'] @@ -75,7 +75,7 @@ if (require.main === module) { onebrick: () => makeOneBrickClient(intConfig('onebrick')) as {}, teller: () => makeTellerClient(intConfig('teller')), stripe: () => - makeStripeClient({apiKey: process.env['STRIPE_TEST_SECRET_KEY']!}), + makeStripeClient({apiKey: process.env['_STRIPE_TEST_SECRET_KEY']!}), ramp: () => makeRampClient(intConfig('ramp').oauth), wise: () => makeWiseClient(intConfig('wise')), toggl: () => makeTogglClient(intConfig('toggl')), @@ -94,15 +94,15 @@ if (require.main === module) { 'merge.accounting': () => makeMergeClient({ - apiKey: process.env['MERGE_TEST_API_KEY'] ?? '', - accountToken: process.env['MERGE_TEST_LINKED_ACCOUNT_TOKEN'] ?? '', + apiKey: process.env['_MERGE_TEST_API_KEY'] ?? '', + accountToken: process.env['_MERGE_TEST_LINKED_ACCOUNT_TOKEN'] ?? '', }).accounting, 'merge.integrations': () => makeMergeClient({ - apiKey: process.env['MERGE_TEST_API_KEY'] ?? '', - accountToken: process.env['MERGE_TEST_LINKED_ACCOUNT_TOKEN'] ?? '', + apiKey: process.env['_MERGE_TEST_API_KEY'] ?? '', + accountToken: process.env['_MERGE_TEST_LINKED_ACCOUNT_TOKEN'] ?? '', }).integrations, - heron: () => makeHeronClient({apiKey: process.env['HERON_API_KEY']!}), + heron: () => makeHeronClient({apiKey: process.env['_HERON_API_KEY']!}), nango: () => makeNangoClient({secretKey: process.env['_NANGO_SECRET_KEY']!}), }