This commit is contained in:
Tianyong Qiu 2025-02-16 22:28:36 +08:00
commit 8084619fd7

View File

@ -934,6 +934,7 @@ if [[ \$USE_LOCAL_COMPONENT_VAL == 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
@ -952,6 +953,7 @@ 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/
@ -1070,6 +1072,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