From d097a9d8f0717b341b1d5a56be3289934231b1a7 Mon Sep 17 00:00:00 2001 From: Till JS Date: Wed, 1 Apr 2026 10:56:17 +0200 Subject: [PATCH] fix(manacore/web): add sync server URL build arg to Dockerfile Production build was falling back to localhost:3050 for mana-sync because PUBLIC_SYNC_SERVER_URL was not set as a build-time ARG. Vite bakes import.meta.env vars at build time, so the runtime docker-compose environment section alone is insufficient. Co-Authored-By: Claude Opus 4.6 (1M context) --- apps/manacore/apps/web/Dockerfile | 2 ++ docker-compose.macmini.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/apps/manacore/apps/web/Dockerfile b/apps/manacore/apps/web/Dockerfile index c3f809f0d..33b3059f2 100644 --- a/apps/manacore/apps/web/Dockerfile +++ b/apps/manacore/apps/web/Dockerfile @@ -4,9 +4,11 @@ FROM sveltekit-base:local AS builder ARG PUBLIC_BACKEND_URL=http://mana-auth ARG PUBLIC_MANA_CORE_AUTH_URL=http://mana-auth:3001 ARG MIDDLEWARE_URL=http://mana-auth:3001 +ARG PUBLIC_SYNC_SERVER_URL=wss://sync.mana.how ENV PUBLIC_BACKEND_URL=$PUBLIC_BACKEND_URL ENV PUBLIC_MANA_CORE_AUTH_URL=$PUBLIC_MANA_CORE_AUTH_URL ENV MIDDLEWARE_URL=$MIDDLEWARE_URL +ENV PUBLIC_SYNC_SERVER_URL=$PUBLIC_SYNC_SERVER_URL COPY apps/manacore/apps/web ./apps/manacore/apps/web diff --git a/docker-compose.macmini.yml b/docker-compose.macmini.yml index 17664b2d8..d23046870 100644 --- a/docker-compose.macmini.yml +++ b/docker-compose.macmini.yml @@ -845,6 +845,8 @@ services: build: context: . dockerfile: apps/manacore/apps/web/Dockerfile + args: + PUBLIC_SYNC_SERVER_URL: wss://sync.mana.how image: manacore-web:local container_name: mana-app-web restart: always