From 18f86125da2caf383aa6b9b7beab4263620cbaf0 Mon Sep 17 00:00:00 2001 From: Owen Date: Mon, 13 Jul 2026 20:43:25 +0200 Subject: [PATCH] pass build args for Vite --- .github/workflows/production.yml | 4 ++-- src/env.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml index dbae9f5..f667772 100644 --- a/.github/workflows/production.yml +++ b/.github/workflows/production.yml @@ -33,8 +33,8 @@ jobs: cache-from: type=gha cache-to: type=gha,mode=max build-args: | - VITE_API_BASE_URL="https://api.chess-scribe.org/api/v1" - VITE_MATOMO_URL="https://analytics.owenrees.eu" + VITE_API_BASE_URL=https://api.chess-scribe.org/api/v1 + VITE_MATOMO_URL=https://analytics.owenrees.eu VITE_MATOMO_SITE_ID="3" VITE_MAINTENANCE_MODE="true" VITE_MAINTENANCE_MODE_MESSAGE="ChessScribe is currently undergoing maintenance. Some features may be unavailable." diff --git a/src/env.ts b/src/env.ts index 0322ad3..f6e2a92 100644 --- a/src/env.ts +++ b/src/env.ts @@ -9,8 +9,8 @@ const clientSchema = z.object({ }); const serverSchema = z.object({ - DISCORD_CONTACT_WEBHOOK: z.url("Invalid Discord Contact Webhook URL"), - DISCORD_ERROR_LOG_WEBHOOK: z.url("Invalid Discord Error Log Webhook URL"), + DISCORD_CONTACT_WEBHOOK: z.string("Invalid Discord Contact Webhook URL"), + DISCORD_ERROR_LOG_WEBHOOK: z.string("Invalid Discord Error Log Webhook URL"), LICHESS_CLIENT_ID: z.string("Invalid Lichess Client ID"), });