Refactor environment variable handling in package.json scripts, update .env.example for consistency, and enhance Turbo configuration for environment variable passthrough. Modify API content type parsing and resolve circular dependencies in Auth and Billing modules. Add unique username generation logic in bootstrap-admin script.
Some checks failed
CI / Node — lint, typecheck, test, build (push) Failing after 9s
CI / Go — node-agent tests (push) Failing after 8s
CI / Go — edge-gateway build (push) Successful in 19s

This commit is contained in:
TheOnlyMace
2026-07-05 14:40:57 +02:00
parent 20e044d32b
commit 2126e7bebf
82 changed files with 233 additions and 12 deletions

28
scripts/dev-bg.sh Executable file
View File

@@ -0,0 +1,28 @@
#!/usr/bin/env bash
set -euo pipefail
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
PID_FILE="$ROOT/.logs/dev.pid"
LOG_FILE="$ROOT/.logs/dev.log"
mkdir -p "$ROOT/.logs"
if [[ -f "$PID_FILE" ]] && kill -0 "$(cat "$PID_FILE")" 2>/dev/null; then
echo "Dev server läuft bereits (PID $(cat "$PID_FILE"))."
echo "Log: $LOG_FILE"
exit 0
fi
# Next.js Dev braucht einen sauberen .next-Ordner (Production-Build stört).
rm -rf "$ROOT/apps/web/.next"
# shellcheck source=scripts/load-env.sh
source "$ROOT/scripts/load-env.sh"
cd "$ROOT"
nohup pnpm turbo run dev >"$LOG_FILE" 2>&1 &
echo $! >"$PID_FILE"
echo "Dev server gestartet (PID $(cat "$PID_FILE"))."
echo "Log: $LOG_FILE"
echo "Web: http://localhost:3000"