- Added lib/dateUtils.ts for consistent timezone handling - Updated app/page.tsx and app/api/daily/route.ts to use Europe/Berlin timezone - Updated lib/gameState.ts to sync client-side daily check with server time - Exposed TZ env var to client in next.config.ts
39 lines
743 B
TypeScript
39 lines
743 B
TypeScript
import type { NextConfig } from "next";
|
|
|
|
const nextConfig: NextConfig = {
|
|
/* config options here */
|
|
reactCompiler: true,
|
|
output: 'standalone',
|
|
experimental: {
|
|
serverActions: {
|
|
bodySizeLimit: '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=31536000, immutable',
|
|
},
|
|
],
|
|
},
|
|
];
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|