-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathnext.config.ts
More file actions
24 lines (22 loc) · 965 Bytes
/
next.config.ts
File metadata and controls
24 lines (22 loc) · 965 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
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
images: {
formats: ['image/webp', 'image/avif'],
deviceSizes: [640, 750, 828, 1080, 1200, 1920, 2048, 3840],
imageSizes: [16, 32, 48, 64, 96, 128, 256, 384],
minimumCacheTTL: 60 * 60 * 24 * 30, // 30 days
dangerouslyAllowSVG: true,
contentSecurityPolicy: "default-src 'self'; script-src 'none'; sandbox;",
remotePatterns: [
{ protocol: 'https', hostname: 'avatars.githubusercontent.com', pathname: '/**' },
{ protocol: 'https', hostname: 'lh3.googleusercontent.com', pathname: '/**' },
// Support standard S3 URLs: bucket.s3.region.amazonaws.com or bucket.s3.amazonaws.com
{ protocol: 'https', hostname: '*.s3.amazonaws.com', pathname: '/**' },
{ protocol: 'https', hostname: '*.s3.*.amazonaws.com', pathname: '/**' },
],
},
experimental: {
optimizePackageImports: ['lucide-react'],
},
};
export default nextConfig;