All checks were successful
Build and Push Docker Image / build (push) Successful in 7m42s
- Inject NEXT_PUBLIC_BUILD_ID at build time via next.config.ts - /api/version static route returns current build ID - VersionGuard client component checks on tab focus + every 5 min - Shows persistent toast with Refresh button (no auto-reload) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
70 lines
1.6 KiB
TypeScript
70 lines
1.6 KiB
TypeScript
import type { NextConfig } from 'next'
|
|
|
|
const nextConfig: NextConfig = {
|
|
output: 'standalone',
|
|
env: {
|
|
NEXT_PUBLIC_BUILD_ID: Date.now().toString(),
|
|
},
|
|
serverExternalPackages: ['@prisma/client', 'minio'],
|
|
typescript: {
|
|
// We run tsc --noEmit separately before each push
|
|
ignoreBuildErrors: true,
|
|
},
|
|
experimental: {
|
|
optimizePackageImports: [
|
|
'lucide-react',
|
|
'sonner',
|
|
'date-fns',
|
|
'recharts',
|
|
'motion/react',
|
|
'zod',
|
|
'@radix-ui/react-icons',
|
|
],
|
|
},
|
|
images: {
|
|
remotePatterns: [
|
|
{
|
|
protocol: 'https',
|
|
hostname: '*.minio.local',
|
|
},
|
|
],
|
|
},
|
|
async redirects() {
|
|
return [
|
|
// Legacy Pipeline/Stage routes → Competition/Round routes
|
|
{
|
|
source: '/admin/rounds/pipelines',
|
|
destination: '/admin/competitions',
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: '/admin/rounds/pipeline/:path*',
|
|
destination: '/admin/competitions',
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: '/jury/stages',
|
|
destination: '/jury/competitions',
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: '/jury/stages/:path*',
|
|
destination: '/jury/competitions',
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: '/applicant/pipeline',
|
|
destination: '/applicant/competition',
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: '/applicant/pipeline/:path*',
|
|
destination: '/applicant/competition',
|
|
permanent: true,
|
|
},
|
|
]
|
|
},
|
|
}
|
|
|
|
export default nextConfig
|