mirror of
https://github.com/kjanat/livedash-node.git
synced 2026-01-16 10:52:08 +01:00
feat: implement cache layer, CSP improvements, and database performance optimizations
- Add Redis cache implementation with LRU eviction - Enhance Content Security Policy with nonce generation - Optimize database queries with connection pooling - Add cache invalidation API endpoints - Improve security monitoring performance
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
import { type NextRequest, NextResponse } from "next/server";
|
||||
import { buildCSP, generateNonce } from "@/lib/csp";
|
||||
import { buildCSP, generateNonce } from "@/lib/csp-server";
|
||||
|
||||
export function middleware(request: NextRequest) {
|
||||
// Skip CSP for API routes (except CSP report endpoint)
|
||||
|
||||
Reference in New Issue
Block a user