cd "D:\bluerouter"

Remove-Item -Recurse -Force ".next", ".next-cli-build", ".\cli\.next", ".\cli\.next-cli-build" -ErrorAction SilentlyContinue

npm install --no-audit --no-fund
npm install pg mysql2 --no-audit --no-fund

npm run build





cd "D:\bluerouter"

$env:NEXT_TELEMETRY_DISABLED="1"
$env:HOME="D:\bluerouter\.home"
$env:USERPROFILE="D:\bluerouter\.home"

New-Item -ItemType Directory -Force ".\.home" | Out-Null

npm run build