This commit is contained in:
Krikorios
2025-07-12 22:36:47 +04:00
parent 7fbf089ec5
commit f83b27db61
73 changed files with 19053 additions and 189 deletions
+54
View File
@@ -0,0 +1,54 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
experimental: {
// Enable experimental features
serverActions: {
allowedOrigins: ['localhost:3000', '127.0.0.1:3000']
},
},
// Allow dev origins
allowedDevOrigins: ['127.0.0.1:3000', 'localhost:3000'],
images: {
domains: ['localhost', 'supabase.co'],
remotePatterns: [
{
protocol: 'https',
hostname: '**',
},
],
},
// Enable standalone output for Docker
output: 'standalone',
// PWA configuration
compiler: {
removeConsole: process.env.NODE_ENV === 'production',
},
// Security headers
async headers() {
return [
{
source: '/(.*)',
headers: [
{
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=(), microphone=(), geolocation=()',
},
],
},
]
},
}
module.exports = nextConfig