diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 8f8552b..af2e386 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -46,6 +46,11 @@ jobs: cd /opt/dimension47/server npm run build + - name: Ensure Server Env + run: | + cd /opt/dimension47/server + grep -q "CORS_ORIGINS" .env || echo 'CORS_ORIGINS=https://dimension47.de,http://localhost:5173' >> .env + - name: Restart Server run: | pm2 delete dimension47 2>/dev/null || true