Files
hoerdle/next.config.ts
Hördle Bot 4f8524c286 Fix daily puzzle rotation timezone issue
- 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
2025-11-22 00:44:14 +01:00

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;