chore: use single chat worker domain for staging and production

Single DB means single chat worker — both frontends connect to chat.xtablo.com.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Arthur Belleville 2026-04-11 16:01:57 +02:00
parent f182fff68e
commit be7c6d4889
3 changed files with 2 additions and 8 deletions

View file

@ -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": {

View file

@ -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 }

View file

@ -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