From be7c6d48891b96d1a4aca6af6a928bb379678657 Mon Sep 17 00:00:00 2001 From: Arthur Belleville Date: Sat, 11 Apr 2026 16:01:57 +0200 Subject: [PATCH] chore: use single chat worker domain for staging and production MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Single DB means single chat worker — both frontends connect to chat.xtablo.com. Co-Authored-By: Claude Opus 4.6 (1M context) --- apps/chat-worker/package.json | 2 -- apps/chat-worker/wrangler.toml | 4 ---- apps/main/.env.staging | 4 ++-- 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/apps/chat-worker/package.json b/apps/chat-worker/package.json index 9230b22..d0fefce 100644 --- a/apps/chat-worker/package.json +++ b/apps/chat-worker/package.json @@ -6,8 +6,6 @@ "scripts": { "dev": "wrangler dev", "deploy": "wrangler deploy", - "deploy:staging": "wrangler deploy --env staging", - "deploy:prod": "wrangler deploy --env production", "typecheck": "tsc --noEmit" }, "dependencies": { diff --git a/apps/chat-worker/wrangler.toml b/apps/chat-worker/wrangler.toml index ee06486..5f244bc 100644 --- a/apps/chat-worker/wrangler.toml +++ b/apps/chat-worker/wrangler.toml @@ -21,8 +21,4 @@ SUPABASE_URL = "https://mhcafqvzbrrwvahpvvzd.supabase.co" # SUPABASE_SERVICE_ROLE_KEY # JWT_SECRET -[env.staging] -route = { pattern = "chat-staging.xtablo.com", custom_domain = true } - -[env.production] route = { pattern = "chat.xtablo.com", custom_domain = true } diff --git a/apps/main/.env.staging b/apps/main/.env.staging index 57c4288..a6bb6b9 100644 --- a/apps/main/.env.staging +++ b/apps/main/.env.staging @@ -4,8 +4,8 @@ VITE_SUPABASE_URL=https://mhcafqvzbrrwvahpvvzd.supabase.co VITE_SUPABASE_ANON_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im1oY2FmcXZ6YnJyd3ZhaHB2dnpkIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NDEyNDEzMjEsImV4cCI6MjA1NjgxNzMyMX0.Otxn5BWCPD2ABlMM59hCgeur9Tf_Q7PndAbTkqXDPtM VITE_SUPABASE_ID=mhcafqvzbrrwvahpvvzd -VITE_CHAT_WS_URL=wss://chat-staging.xtablo.com -VITE_CHAT_API_URL=https://chat-staging.xtablo.com +VITE_CHAT_WS_URL=wss://chat.xtablo.com +VITE_CHAT_API_URL=https://chat.xtablo.com VITE_STRIPE_PUBLISHABLE_KEY=pk_test_51SPKLPAto3YQ7YhIrM5ViAUXWuSwKJeHyOyOINVg9cnwxxOcbMlyhxQcDYWDSLNQJukafxbc7kqpkGI82lFezaiM00rgcALKB0 VITE_STRIPE_STANDARD_MONTHLY_PRICE_ID=price_1SPr3qAto3YQ7YhIALNeFBva