-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.ts
More file actions
34 lines (27 loc) · 793 Bytes
/
next.config.ts
File metadata and controls
34 lines (27 loc) · 793 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
// Optimize for Vercel deployment
serverExternalPackages: ['@supabase/supabase-js'],
// Output configuration for different deployment options
output: process.env.BUILD_STANDALONE === 'true' ? 'standalone' : undefined,
// Image optimization
images: {
domains: ['localhost'],
formats: ['image/webp', 'image/avif'],
},
// Production optimizations
compress: true,
poweredByHeader: false,
// Enhanced for production
eslint: {
ignoreDuringBuilds: false,
},
typescript: {
ignoreBuildErrors: false,
},
// Performance optimizations
experimental: {
// optimizeCss: true, // Disabled temporarily due to critters dependency issue
},
};
export default nextConfig;