- Fixed 12 TypeScript errors across analytics.ts, observer-project-detail.tsx, bulk-upload/page.tsx, settings/profile/page.tsx - npm audit: 8 vulnerabilities resolved (1 critical, 4 high, 3 moderate) - Deleted 3 dead files: live-control.ts (618 lines), feature-flags.ts, file-type-categories.ts - Removed typescript.ignoreBuildErrors: true — TS errors now block builds Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
66 lines
1.5 KiB
TypeScript
66 lines
1.5 KiB
TypeScript
import type { NextConfig } from 'next'
|
|
|
|
const nextConfig: NextConfig = {
|
|
output: 'standalone',
|
|
serverExternalPackages: ['@prisma/client', 'minio'],
|
|
typescript: {
|
|
ignoreBuildErrors: false,
|
|
},
|
|
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
|