Files
dmenu-plus-front/next.config.ts
T
Mahyar Khanbolooki 7b2eae1a21 improve: dark theme
2025-08-12 21:44:04 +03:30

61 lines
1.2 KiB
TypeScript

import type { NextConfig } from 'next';
import withPWA from 'next-pwa';
const nextConfig: NextConfig = {
output: 'standalone',
poweredByHeader: false,
images: {
remotePatterns: [
{
protocol: 'https',
hostname: '**',
},
{
protocol: 'http',
hostname: '**',
},
]
},
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',
},
],
},
],
};
const withPWANextConfig = withPWA({
dest: 'public',
register: true,
skipWaiting: true,
disable: process.env.NODE_ENV === 'development',
maximumFileSizeToCacheInBytes: 5 * 1024 * 1024, // 5 MB
})(nextConfig);
export default withPWANextConfig;