From 095eea3ed8d0773297540dc69c6f1374f5b68827 Mon Sep 17 00:00:00 2001 From: Ilia Manolov Date: Fri, 10 Jul 2026 14:34:02 +0100 Subject: [PATCH 1/2] Add temp-local-stack env pointing at the Railway-hosted offline stack Registers a temp-local-stack EnvConfig targeting the local-stack-backend service in the edison-watch Railway project (demo environment), which runs the offline stack (TEST_AUTH_MODE=local) at a fixed public URL. Unlike the "local" config no origin rewriting applies. MCP_BASE_URL is left empty until the FastMCP port (3000) gets a public Railway domain. Also resolves merge-conflict markers that landed in package.json via the knip dependabot merge (pinned to the installed versions: knip ^6.18.0, prettier ^3.8.4). Co-Authored-By: Claude Fable 5 --- package.json | 7 +------ src/config/env-config.ts | 23 ++++++++++++++++++++++- 2 files changed, 23 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 19f26b8..a2b50d2 100644 --- a/package.json +++ b/package.json @@ -164,13 +164,8 @@ "eslint-plugin-react-hooks": "^7.1.1", "http-server": "^14.1.1", "jsdom": "^29.1.1", -<<<<<<< HEAD - "knip": "^6.24.0", - "prettier": "^3.8.4", -======= "knip": "^6.18.0", - "prettier": "^3.9.4", ->>>>>>> origin/main + "prettier": "^3.8.4", "react": "^19.2.4", "react-dom": "^19.2.4", "react-router": "^8.1.0", diff --git a/src/config/env-config.ts b/src/config/env-config.ts index b9cbbd2..f96ed8d 100644 --- a/src/config/env-config.ts +++ b/src/config/env-config.ts @@ -80,10 +80,31 @@ const LOCAL_CONFIG: EnvConfig = { RELEASES_BASE_URL: '' } +// Railway-hosted instance of the offline local stack (edison-watch project, +// demo environment, service "local-stack-backend"). Same TEST_AUTH_MODE=local +// backend as LOCAL_CONFIG (GoTrue proxied at /auth/v1, edge functions +// reimplemented at /functions/v1), but reached at a fixed public URL, so no +// origin rewriting applies. MCP (FastMCP, container port 3000) has no public +// Railway domain yet; MCP_BASE_URL stays empty until one is created, which +// only disables MCP health checks and client-config rewrites. +const TEMP_LOCAL_STACK_CONFIG: EnvConfig = { + SUPABASE_URL: 'https://local-stack-backend-demo.up.railway.app', + SUPABASE_ANON_KEY: 'local-anon-key', + FUNCTIONS_URL: 'https://local-stack-backend-demo.up.railway.app', + SENTRY_DSN: '', + POSTHOG_API_KEY: '', + POSTHOG_FEEDBACK_SURVEY_ID: '', + DEPLOY_ENV: 'temp-local-stack', + API_BASE_URL: 'https://local-stack-backend-demo.up.railway.app', + MCP_BASE_URL: '', + RELEASES_BASE_URL: '' +} + const CONFIGS: Record = { demo: DEMO_CONFIG, release: RELEASE_CONFIG, - local: LOCAL_CONFIG + local: LOCAL_CONFIG, + 'temp-local-stack': TEMP_LOCAL_STACK_CONFIG } /** MCP gateway port (sibling of the dashboard); overridable at build time. */ From 15392b087f12453311e9e048ea61065efec7b4c8 Mon Sep 17 00:00:00 2001 From: Ilia Manolov Date: Fri, 10 Jul 2026 14:47:39 +0100 Subject: [PATCH 2/2] Resolve leftover merge-conflict markers in package-lock.json Same origin as the package.json markers: the knip dependabot merge committed an unresolved conflict. Kept the locked knip 6.24.0 / prettier 3.9.4 entries, which satisfy the resolved ranges. Co-Authored-By: Claude Fable 5 --- package-lock.json | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index 7dd0bbf..927a966 100644 --- a/package-lock.json +++ b/package-lock.json @@ -25,13 +25,8 @@ "eslint-plugin-react-hooks": "^7.1.1", "http-server": "^14.1.1", "jsdom": "^29.1.1", -<<<<<<< HEAD - "knip": "^6.24.0", - "prettier": "^3.8.4", -======= "knip": "^6.18.0", - "prettier": "^3.9.4", ->>>>>>> origin/main + "prettier": "^3.8.4", "react": "^19.2.4", "react-dom": "^19.2.4", "react-router": "^8.1.0",