Files
MOPC-Portal/next.config.ts
Matt 22731e7978
Some checks failed
Build and Push Docker Image / build (push) Has been cancelled
fix: build speed, observer AI details, round tracker empty state
- Disable typedRoutes and skip TS in build (run tsc separately) — build
  drops from ~9min to ~36s
- Expand optimizePackageImports for sonner, date-fns, recharts, motion, zod
- Docker: mount .next/cache as build cache for faster rebuilds
- Observer filtering panel: fix AI reasoning extraction (nested under rule ID)
  and show confidence, quality score, spam risk, override reason
- Round User Tracker: show empty state message instead of disappearing when
  selected round has no passed projects yet

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-05 17:30:11 +01:00

67 lines
1.5 KiB
TypeScript

import type { NextConfig } from 'next'
const nextConfig: NextConfig = {
output: 'standalone',
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