-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.ts
More file actions
40 lines (34 loc) · 1.08 KB
/
Copy pathnext.config.ts
File metadata and controls
40 lines (34 loc) · 1.08 KB
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
35
36
37
38
39
40
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
/* config options here */
env: {
NEXT_PUBLIC_APP_VERSION: process.env.npm_package_version || '0.1.0',
NEXT_PUBLIC_VERCEL_GIT_COMMIT_SHA: process.env.VERCEL_GIT_COMMIT_SHA,
NEXT_PUBLIC_VERCEL_GIT_COMMIT_REF: process.env.VERCEL_GIT_COMMIT_REF,
NEXT_PUBLIC_VERCEL_ENV: process.env.VERCEL_ENV,
},
// Performance optimizations
compress: true, // Enable gzip compression
// Optimize production bundle
productionBrowserSourceMaps: false, // Disable source maps in production for faster builds
// Image optimization
images: {
formats: ['image/webp', 'image/avif'],
minimumCacheTTL: 60,
remotePatterns: [
{
protocol: 'https',
hostname: '75a37cbe8a.clvaw-cdnwnd.com',
pathname: '/**',
},
],
},
// Experimental features for better performance
experimental: {
// Optimize CSS
optimizeCss: true,
// Optimize package imports
optimizePackageImports: ['lucide-react', '@radix-ui/react-icons'],
},
};
export default nextConfig;