Skip to content

Commit

Permalink
chore: Using consistent integration env var format
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyxiao committed Nov 14, 2023
1 parent c7c8c05 commit af4b523
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions integrations/integration-plaid/PlaidClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,19 +99,19 @@ export function makePlaidClient(config: {
export function getPlatformConfig(envName: EnvName) {
const env = createEnv({
server: {
PLAID_CLIENT_ID: z.string(),
PLAID_CLIENT_SECRET_SANDBOX: z.string(),
PLAID_CLIENT_SECRET_DEVELOPMENT: z.string(),
PLAID_CLIENT_SECRET_PRODUCTION: z.string(),
int_plaid__CLIENT_ID: z.string(),
int_plaid__CLIENT_SECRET_SANDBOX: z.string(),
int_plaid__CLIENT_SECRET_DEVELOPMENT: z.string(),
int_plaid__CLIENT_SECRET_PRODUCTION: z.string(),
},
runtimeEnv: process.env,
})
return {
clientId: env.PLAID_CLIENT_ID,
clientId: env.int_plaid__CLIENT_ID,
clientSecret: {
sandbox: env.PLAID_CLIENT_SECRET_SANDBOX,
development: env.PLAID_CLIENT_SECRET_DEVELOPMENT,
production: env.PLAID_CLIENT_SECRET_PRODUCTION,
sandbox: env.int_plaid__CLIENT_SECRET_SANDBOX,
development: env.int_plaid__CLIENT_SECRET_DEVELOPMENT,
production: env.int_plaid__CLIENT_SECRET_PRODUCTION,
}[envName],
}
}

1 comment on commit af4b523

@vercel
Copy link

@vercel vercel bot commented on af4b523 Nov 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

venice – ./

venice-venice.vercel.app
usevenice.vercel.app
venice-git-production-venice.vercel.app
app.venice.is

Please sign in to comment.