- Add SKIP_ENV_VALIDATION to bypass Zod env check during next build - Bundle custom server.ts with esbuild so production uses Socket.io - Create worker entry point (src/worker.ts) with all BullMQ workers - Add esbuild build scripts for server and worker bundles - Fix Dockerfile.worker to include its own build stage - Fix pre-commit hook to work without global pnpm - Add CLAUDE.md with project conventions and quick reference Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
12 lines
413 B
Plaintext
12 lines
413 B
Plaintext
npx pnpm exec lint-staged
|
|
# Verify no .env files staged
|
|
if git diff --cached --name-only | grep -qE '\.env($|\.)'; then
|
|
echo "❌ .env files must not be committed"
|
|
exit 1
|
|
fi
|
|
# Scan for potential secrets
|
|
if git diff --cached -U0 | grep -qiE '(password|secret|api_key|access_key)\s*[:=]\s*["\x27][A-Za-z0-9+/=]{16,}'; then
|
|
echo "⚠️ Possible hardcoded secret detected. Review staged changes."
|
|
exit 1
|
|
fi
|