36 lines
686 B
TypeScript
36 lines
686 B
TypeScript
import type { NextConfig } from "next";
|
|
|
|
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;
|