Skip to content

Commit cd7768f

Browse files
committed
fail fast when registry env vars are empty strings
1 parent 5a9ed96 commit cd7768f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/webapp/app/env.server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,10 +220,10 @@ const EnvironmentSchema = z.object({
220220
DEPOT_TOKEN: z.string().optional(),
221221
DEPOT_ORG_ID: z.string().optional(),
222222
DEPOT_REGION: z.string().default("us-east-1"),
223-
DEPLOY_REGISTRY_HOST: z.string(),
223+
DEPLOY_REGISTRY_HOST: z.string().min(1),
224224
DEPLOY_REGISTRY_USERNAME: z.string().optional(),
225225
DEPLOY_REGISTRY_PASSWORD: z.string().optional(),
226-
DEPLOY_REGISTRY_NAMESPACE: z.string().default("trigger"),
226+
DEPLOY_REGISTRY_NAMESPACE: z.string().min(1).default("trigger"),
227227
DEPLOY_IMAGE_PLATFORM: z.string().default("linux/amd64"),
228228
DEPLOY_TIMEOUT_MS: z.coerce
229229
.number()

0 commit comments

Comments
 (0)