Skip to content

Commit

Permalink
build: 👷 add comment and remove optional from env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
peelar committed Dec 14, 2023
1 parent 8ea68bd commit 9157cad
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/lib/env.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -24,36 +24,37 @@ export const env = createEnv({
UPSTASH_TOKEN: z.string().optional(),
REST_APL_ENDPOINT: z.string().optional(),
REST_APL_TOKEN: z.string().optional(),
// The following variables should be back to "optional" once the app features adding config through the UI.
AUTHORIZE_API_LOGIN_ID: z
.string()
.min(1)
.optional()
// .optional()
.describe("API Login ID. You can find it in Account → API Credentials & Keys."),
AUTHORIZE_TRANSACTION_KEY: z
.string()
.min(1)
.optional()
// .optional()
.describe(
"Transaction key needed to authenticate Authorize.net SDK. You can generate it in Account → API Credentials & Keys.",
),
AUTHORIZE_PUBLIC_CLIENT_KEY: z
.string()
.min(1)
.optional()
// .optional()
.describe("Public client key. You can generate it in Account -> Manage Public Client Key"),
AUTHORIZE_ENVIRONMENT: z.enum(["sandbox", "production"]).optional(),
AUTHORIZE_ENVIRONMENT: z.enum(["sandbox", "production"]) /*.optional()*/,
AUTHORIZE_SALEOR_CHANNEL_SLUG: z
.string()
.min(1)
.optional()
// .optional()
.default("default-channel")
.describe(
"Saleor channel slug. When configuring the app through env, you can only use one channel.",
),
AUTHORIZE_PAYMENT_FORM_URL: z
.string()
.min(1)
.optional()
// .optional()
.describe(
"Payment form URL. This is the address your front-end UI is running on. Make sure it is on https. Otherwise the Accept Hosted form will not work.",
),
Expand Down

0 comments on commit 9157cad

Please sign in to comment.