Skip to content

Commit

Permalink
Adding nango public key also
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyxiao committed Oct 11, 2023
1 parent 1e1735d commit 28765e9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 2 additions & 0 deletions apps/app-config/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,15 @@ 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({
CLERK_SECRET_KEY: process.env['CLERK_SECRET_KEY'],
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'],
Expand Down
14 changes: 7 additions & 7 deletions apps/cli/_cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down Expand Up @@ -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']!}),

Check warning on line 78 in apps/cli/_cli.ts

View workflow job for this annotation

GitHub Actions / Run type checks, lint, and tests

Forbidden non-null assertion
ramp: () => makeRampClient(intConfig('ramp').oauth),
wise: () => makeWiseClient(intConfig('wise')),
toggl: () => makeTogglClient(intConfig('toggl')),
Expand All @@ -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']!}),

Check warning on line 105 in apps/cli/_cli.ts

View workflow job for this annotation

GitHub Actions / Run type checks, lint, and tests

Forbidden non-null assertion
nango: () =>
makeNangoClient({secretKey: process.env['_NANGO_SECRET_KEY']!}),

Check warning on line 107 in apps/cli/_cli.ts

View workflow job for this annotation

GitHub Actions / Run type checks, lint, and tests

Forbidden non-null assertion
}
Expand Down

0 comments on commit 28765e9

Please sign in to comment.