-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.ts
More file actions
35 lines (33 loc) · 989 Bytes
/
next.config.ts
File metadata and controls
35 lines (33 loc) · 989 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
35
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
reactStrictMode: true,
output: "standalone",
images: {
remotePatterns: [
{
protocol: "https",
hostname: "ddragon.leagueoflegends.com",
pathname: "/cdn/**",
},
{
protocol: "https",
hostname: "images.contentstack.io",
pathname: "/**",
},
{
protocol: "https",
hostname: "cmsassets.rgpub.io",
pathname: "/**",
},
],
// Data Dragon images are served from Riot CDN and don't need optimization
// We use dangerouslyAllowSVG for champion/item icons
dangerouslyAllowSVG: true,
contentDispositionType: "attachment",
contentSecurityPolicy: "default-src 'self'; script-src 'none'; sandbox;",
// Only disable optimization for Data Dragon domain
// Local images will still be optimized
unoptimized: process.env.NODE_ENV === "development",
},
};
export default nextConfig;