fix: generateBuildId with timestamp to bust Cloudflare CDN cache on each deploy
Deploy to workbeast (legal-preview.bigwigerp.com) / Deploy legal-service + frontend (push) Successful in 14m18s

This commit is contained in:
2026-06-28 13:47:24 +02:00
parent 41cace5ad5
commit add081e7fc
+2
View File
@@ -1,6 +1,8 @@
import type { NextConfig } from 'next'
const nextConfig: NextConfig = {
// Unique build ID forces Cloudflare CDN to invalidate cached static chunks on each deploy
generateBuildId: async () => `build-${Date.now()}`,
async redirects() {
return [
{ source: '/', destination: '/en/dashboard', permanent: false },