From f26fd2dfc888e5cc28a25742d09e5493417b6c3c Mon Sep 17 00:00:00 2001 From: Matt Aitken Date: Mon, 2 Sep 2024 16:22:45 +0100 Subject: [PATCH] =?UTF-8?q?ELECTRIC=5FORIGIN=20env=20var=20doesn=E2=80=99t?= =?UTF-8?q?=20have=20a=20default,=20added=20to=20the=20examples?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.example | 1 + apps/webapp/app/env.server.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.env.example b/.env.example index f38004ef4..2e1725cf0 100644 --- a/.env.example +++ b/.env.example @@ -10,6 +10,7 @@ DIRECT_URL=${DATABASE_URL} REMIX_APP_PORT=3030 APP_ENV=development APP_ORIGIN=http://localhost:3030 +ELECTRIC_ORIGIN=http://localhost:3060 NODE_ENV=development V3_ENABLED=true diff --git a/apps/webapp/app/env.server.ts b/apps/webapp/app/env.server.ts index 76a6b624d..9e6a5ab0e 100644 --- a/apps/webapp/app/env.server.ts +++ b/apps/webapp/app/env.server.ts @@ -31,7 +31,7 @@ const EnvironmentSchema = z.object({ REMIX_APP_PORT: z.string().optional(), LOGIN_ORIGIN: z.string().default("http://localhost:3030"), APP_ORIGIN: z.string().default("http://localhost:3030"), - ELECTRIC_ORIGIN: z.string().default("http://localhost:3060"), + ELECTRIC_ORIGIN: z.string(), APP_ENV: z.string().default(process.env.NODE_ENV), SERVICE_NAME: z.string().default("trigger.dev webapp"), SECRET_STORE: SecretStoreOptionsSchema.default("DATABASE"),