Some checks failed
Lint / build (20) (push) Has been cancelled
- 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
4 lines
242 B
TypeScript
4 lines
242 B
TypeScript
// Next.js 中间件入口 — 将 proxy.ts 的安全逻辑正确接入
|
|
// 之前 proxy.ts 存在但未正确导出为 Next.js middleware 格式,导致限流和安全检查均未生效
|
|
export { proxy as middleware, config } from "./proxy";
|