deploy: support configurable backend host for frontend API URL
All checks were successful
Deploy to Production / deploy (push) Successful in 57s
All checks were successful
Deploy to Production / deploy (push) Successful in 57s
This commit is contained in:
@@ -18,6 +18,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
cat > .env.production << 'ENVEOF'
|
cat > .env.production << 'ENVEOF'
|
||||||
DOMAIN=${{ secrets.DOMAIN }}
|
DOMAIN=${{ secrets.DOMAIN }}
|
||||||
|
BACKEND_HOST=${{ secrets.BACKEND_HOST }}
|
||||||
FRONTEND_HOST=${{ secrets.FRONTEND_HOST }}
|
FRONTEND_HOST=${{ secrets.FRONTEND_HOST }}
|
||||||
ENVIRONMENT=production
|
ENVIRONMENT=production
|
||||||
PROJECT_NAME=${{ secrets.PROJECT_NAME }}
|
PROJECT_NAME=${{ secrets.PROJECT_NAME }}
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ services:
|
|||||||
context: .
|
context: .
|
||||||
dockerfile: frontend/Dockerfile
|
dockerfile: frontend/Dockerfile
|
||||||
args:
|
args:
|
||||||
- VITE_API_URL=https://api.${DOMAIN?Variable not set}
|
- VITE_API_URL=https://${BACKEND_HOST:-api.${DOMAIN?Variable not set}}
|
||||||
- NODE_ENV=production
|
- NODE_ENV=production
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
|
|||||||
Reference in New Issue
Block a user