diff --git a/devbox/devbox.local/devbox b/devbox/devbox.local/devbox index c6d2c84..d730320 100644 --- a/devbox/devbox.local/devbox +++ b/devbox/devbox.local/devbox @@ -1177,6 +1177,7 @@ if [[ "\$(lower "\$USE_LOCAL_COMPONENT")" == "true" ]]; then export FREELEAPS_AUTHENTICATION_ENDPOINT=http://localhost:8004/api/auth/ export FREELEAPS_AILAB_ENDPOINT=https://localhost:8009/api/ export KAFKA_SERVER_URL='' + export JWT_SECRET_KEY=8f87ca8c3c9c3df09a9c78e0adb0927855568f6072d9efc892534aee35f5867b export EMAIL_FROM=freeleaps@freeleaps.com EOFinner else @@ -1194,11 +1195,13 @@ else export STRIPE_ACCOUNT_WEBHOOK_SECRET=whsec_PgPnkWGhEUiQfnV8aIb5Wmruz7XETJLm export SITE_URL_ROOT=http://localhost/ export FREELEAPS_DEVSVC_ENDPOINT=http://52.149.3.85:8007/api/devsvc/ + export FREELEAPS_CHAT_ENDPOINT=https://freeleaps-alpha.com/api/chat/ export FREELEAPS_CONTENT_ENDPOINT=http://52.149.35.244:8013/api/content/ export FREELEAPS_NOTIFICATION_ENDPOINT=http://52.149.35.244:8003/api/notification/ export FREELEAPS_CENTRAL_STORAGE_ENDPOINT=http://52.149.35.244:8005/api/central_storage/ export FREELEAPS_AUTHENTICATION_ENDPOINT=http://52.149.35.244:8004/api/auth/ export FREELEAPS_AILAB_ENDPOINT=https://as010-w2-re-vm.mathmast.com:8009/api/ + export JWT_SECRET_KEY=ea84edf152976b2fcec12b78aa8e45bc26a5cf0ef61bf16f5c317ae33b3fd8b0 export KAFKA_SERVER_URL='' export EMAIL_FROM=freeleaps@freeleaps.com EOFinner @@ -1311,6 +1314,15 @@ pushd /home/.devbox/freeleaps/frontend # start the frontend service export VITE_API_URL='http://127.0.0.1:8002' export VITE_WEBSOCKET_URL='http://127.0.0.1:8002' + +if [[ "\$(lower "\$USE_LOCAL_COMPONENT")" == "true" ]]; then + export VITE_PROXY_WEBSOCKET_CHAT_URL='ws://localhost:8012' + export VITE_PROXY_API_CHAT_URL='http://localhost:8012' +else + export VITE_PROXY_WEBSOCKET_CHAT_URL='wss://freeleaps-alpha.com' + export VITE_PROXY_API_CHAT_URL='https://freeleaps-alpha.com' +fi + npm install npm update