ai-chatbot/middleware.ts
Your Name d58b706799
Some checks failed
Lint / build (20) (push) Has been cancelled
security: implement Phase 1 & partial Phase 2 improvements
- Remove hardcoded admin password, use env var or auto-generate
- Fix trustHost to be conditional (Vercel-only by default)
- Add HTTP security headers (CSP, X-Frame-Options, HSTS)
- Create middleware.ts to activate existing rate limiting
- Implement structured logging system
- Rewrite error handling in ai-cad service
- Update security documentation
2026-05-05 22:49:57 +08:00

4 lines
242 B
TypeScript

// Next.js 中间件入口 — 将 proxy.ts 的安全逻辑正确接入
// 之前 proxy.ts 存在但未正确导出为 Next.js middleware 格式,导致限流和安全检查均未生效
export { proxy as middleware, config } from "./proxy";