remove header

This commit is contained in:
hamid zarghami
2025-04-16 12:46:06 +03:30
parent 5e5f02ee06
commit c797df85ce
2 changed files with 32 additions and 32 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
FROM node:20-alpine AS base FROM node:22-alpine AS base
RUN apk add --no-cache tzdata && \ RUN apk add --no-cache tzdata && \
cp /usr/share/zoneinfo/Asia/Tehran /etc/localtime && \ cp /usr/share/zoneinfo/Asia/Tehran /etc/localtime && \
+31 -31
View File
@@ -17,37 +17,37 @@ const nextConfig: NextConfig = {
}, },
], ],
}, },
headers: async () => [ // headers: async () => [
{ // {
source: "/:path*", // source: "/:path*",
headers: [ // headers: [
{ // {
key: "X-DNS-Prefetch-Control", // key: "X-DNS-Prefetch-Control",
value: "on", // value: "on",
}, // },
{ // {
key: "Strict-Transport-Security", // key: "Strict-Transport-Security",
value: "max-age=63072000; includeSubDomains; preload", // value: "max-age=63072000; includeSubDomains; preload",
}, // },
{ // {
key: "X-XSS-Protection", // key: "X-XSS-Protection",
value: "1; mode=block", // value: "1; mode=block",
}, // },
{ // {
key: "X-Frame-Options", // key: "X-Frame-Options",
value: "SAMEORIGIN", // value: "SAMEORIGIN",
}, // },
{ // {
key: "X-Content-Type-Options", // key: "X-Content-Type-Options",
value: "nosniff", // value: "nosniff",
}, // },
{ // {
key: "Referrer-Policy", // key: "Referrer-Policy",
value: "origin-when-cross-origin", // value: "origin-when-cross-origin",
}, // },
], // ],
}, // },
], // ],
}; };
export default nextConfig; export default nextConfig;