feat : 6 astra improve it
This commit is contained in:
@@ -1,7 +1,12 @@
|
||||
import type { NextConfig } from "next";
|
||||
import { resolve } from "node:path";
|
||||
import { securityHeaders } from "./lib/security/headers";
|
||||
|
||||
const nextConfig: NextConfig = {
|
||||
poweredByHeader: false,
|
||||
async headers() {
|
||||
return [{ source: "/:path*", headers: securityHeaders(process.env.NODE_ENV === "production") }];
|
||||
},
|
||||
cacheComponents: true,
|
||||
cacheHandlers: {
|
||||
remote: resolve(process.cwd(), "cache-handlers/redis-handler.cjs"),
|
||||
|
||||
Reference in New Issue
Block a user