This commit is contained in:
Mahyar Khanbolooki
2025-08-02 17:41:31 +03:30
parent a090c27e4b
commit 99e66e3cae
14 changed files with 3567 additions and 156 deletions
+33 -27
View File
@@ -1,53 +1,59 @@
import type { NextConfig } from "next";
import type { NextConfig } from 'next';
import withPWA from 'next-pwa';
const nextConfig: NextConfig = {
output: "standalone",
/* config options here */
output: 'standalone',
poweredByHeader: false,
images: {
domains: ["*"],
remotePatterns: [
{
protocol: "https",
hostname: "**",
},
{
protocol: "http",
hostname: "**",
},
],
{
protocol: 'https',
hostname: '**',
},
{
protocol: 'http',
hostname: '**',
},
]
},
headers: async () => [
{
source: "/:path*",
source: '/:path*',
headers: [
{
key: "X-DNS-Prefetch-Control",
value: "on",
key: 'X-DNS-Prefetch-Control',
value: 'on',
},
{
key: "Strict-Transport-Security",
value: "max-age=63072000; includeSubDomains; preload",
key: 'Strict-Transport-Security',
value: 'max-age=63072000; includeSubDomains; preload',
},
{
key: "X-XSS-Protection",
value: "1; mode=block",
key: 'X-XSS-Protection',
value: '1; mode=block',
},
{
key: "X-Frame-Options",
value: "SAMEORIGIN",
key: 'X-Frame-Options',
value: 'SAMEORIGIN',
},
{
key: "X-Content-Type-Options",
value: "nosniff",
key: 'X-Content-Type-Options',
value: 'nosniff',
},
{
key: "Referrer-Policy",
value: "origin-when-cross-origin",
key: 'Referrer-Policy',
value: 'origin-when-cross-origin',
},
],
},
],
};
export default nextConfig;
const withPWANextConfig = withPWA({
dest: 'public',
register: true,
skipWaiting: true,
disable: process.env.NODE_ENV === 'development',
})(nextConfig);
export default withPWANextConfig;