first commit

This commit is contained in:
2026-07-18 01:34:52 +05:30
commit d1308bf149
113 changed files with 20593 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
/** @type {import('next').NextConfig} */
// Static security headers. The Content-Security-Policy is set per-request in
// middleware.ts so it can carry a unique nonce (no 'unsafe-inline' scripts).
const securityHeaders = [
{ key: 'X-Frame-Options', value: 'DENY' },
{ key: 'X-Content-Type-Options', value: 'nosniff' },
{ key: 'Referrer-Policy', value: 'strict-origin-when-cross-origin' },
{ key: 'Permissions-Policy', value: 'camera=(self), microphone=(self), geolocation=(self)' },
{ key: 'X-DNS-Prefetch-Control', value: 'on' },
];
const nextConfig = {
reactStrictMode: true,
transpilePackages: ['@photo-gallery/sdk'],
async headers() {
return [{ source: '/:path*', headers: securityHeaders }];
},
};
export default nextConfig;