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
Deploy to workbeast (legal-preview.bigwigerp.com) / Deploy legal-service + frontend (push) Successful in 14m18s
This commit is contained in:
@@ -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 },
|
||||
|
||||
Reference in New Issue
Block a user