From c797df85cec83046a036316a3e6284e5b1e981f4 Mon Sep 17 00:00:00 2001 From: hamid zarghami Date: Wed, 16 Apr 2025 12:46:06 +0330 Subject: [PATCH] remove header --- Dockerfile | 2 +- next.config.ts | 62 +++++++++++++++++++++++++------------------------- 2 files changed, 32 insertions(+), 32 deletions(-) diff --git a/Dockerfile b/Dockerfile index 858b9c8..5006d73 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:20-alpine AS base +FROM node:22-alpine AS base RUN apk add --no-cache tzdata && \ cp /usr/share/zoneinfo/Asia/Tehran /etc/localtime && \ diff --git a/next.config.ts b/next.config.ts index ef2c3d5..cdc7519 100644 --- a/next.config.ts +++ b/next.config.ts @@ -17,37 +17,37 @@ const nextConfig: NextConfig = { }, ], }, - headers: async () => [ - { - source: "/:path*", - headers: [ - { - key: "X-DNS-Prefetch-Control", - value: "on", - }, - { - key: "Strict-Transport-Security", - value: "max-age=63072000; includeSubDomains; preload", - }, - { - key: "X-XSS-Protection", - value: "1; mode=block", - }, - { - key: "X-Frame-Options", - value: "SAMEORIGIN", - }, - { - key: "X-Content-Type-Options", - value: "nosniff", - }, - { - key: "Referrer-Policy", - value: "origin-when-cross-origin", - }, - ], - }, - ], + // headers: async () => [ + // { + // source: "/:path*", + // headers: [ + // { + // key: "X-DNS-Prefetch-Control", + // value: "on", + // }, + // { + // key: "Strict-Transport-Security", + // value: "max-age=63072000; includeSubDomains; preload", + // }, + // { + // key: "X-XSS-Protection", + // value: "1; mode=block", + // }, + // { + // key: "X-Frame-Options", + // value: "SAMEORIGIN", + // }, + // { + // key: "X-Content-Type-Options", + // value: "nosniff", + // }, + // { + // key: "Referrer-Policy", + // value: "origin-when-cross-origin", + // }, + // ], + // }, + // ], }; export default nextConfig;