diff --git a/next.config.ts b/next.config.ts index 48ad8c4..a0043f5 100644 --- a/next.config.ts +++ b/next.config.ts @@ -4,6 +4,32 @@ const nextConfig: NextConfig = { /* config options here */ reactCompiler: true, output: 'standalone', + experimental: { + serverActions: { + bodySizeLimit: '50mb', + }, + }, + async headers() { + return [ + { + source: '/uploads/:path*.mp3', + headers: [ + { + key: 'Content-Type', + value: 'audio/mpeg', + }, + { + key: 'Accept-Ranges', + value: 'bytes', + }, + { + key: 'Cache-Control', + value: 'public, max-age=31536000, immutable', + }, + ], + }, + ]; + }, }; export default nextConfig;