#!/bin/bash # Setze Standard-Wert auf "k8s" wenn DEPLOY_MODE nicht gesetzt ist DEPLOY_MODE=${DEPLOY_MODE:-k8s} echo "DEPLOY_MODE ist: $DEPLOY_MODE" # Injektiere ins Frontend echo "window.DEPLOY_MODE = \"$DEPLOY_MODE\";" > dist/frontend/deploy.js # start backend in the background node dist/backend/server.js & # start frontend npx http-server dist/frontend -p 8080 --cors --mime application/javascript=js