Files
hoerdle/next.config.ts

40 lines
786 B
TypeScript

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: '/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;