import type { NextConfig } from "next"; const nextConfig: NextConfig = { /* config options here */ reactCompiler: true, output: 'standalone', experimental: { serverActions: { bodySizeLimit: '50mb', }, middlewareClientMaxBodySize: '50mb', }, env: { TZ: process.env.TZ || 'Europe/Berlin', }, async headers() { return [ { source: '/:path*', headers: [ { key: 'Content-Security-Policy', value: "script-src 'self' 'unsafe-inline' 'unsafe-eval' https://plausible.elpatron.me; connect-src 'self' https://plausible.elpatron.me;", }, ], }, { source: '/uploads/:path*.mp3', headers: [ { key: 'Content-Type', value: 'audio/mpeg', }, { key: 'Accept-Ranges', value: 'bytes', }, { key: 'Cache-Control', value: 'public, max-age=3600, must-revalidate', }, ], }, ]; }, }; export default nextConfig;