-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnext.config.mjs
41 lines (35 loc) Β· 1.07 KB
/
next.config.mjs
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
41
import bundleAnalyzer from '@next/bundle-analyzer';
const withBundleAnalyzer = bundleAnalyzer({
enabled: process.env.ANALYZE === 'true',
});
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: false,
swcMinify: true,
compiler: {
styledComponents: {
displayName: true, // κ°λ° μ€ μ€νμΌ μ»΄ν¬λνΈμ λλ²κΉ
νΈμμ±μ λμ΄κΈ° μν μ€μ
ssr: true, // μλ²μ¬μ΄λ λ λλ§μ μν΄ true μ μ§
},
},
webpack: (config) => {
config.cache = false; // β
Webpack μΊμ λ¬Έμ ν΄κ²° (νμ μ νμ±ν)
return config;
},
async rewrites() {
return [
{
source: '/group-service/:path*',
destination: `${
process.env.NODE_ENV === 'development'
? 'http://3.39.135.47:8083/group-service/:path*'
: 'https://urdego.com/api/group-service/:path*'
}`,
},
];
},
images: {
domains: ['urdego.site'], // β
μΈλΆ μ΄λ―Έμ§ μ¬μ©μ μν΄ νμ©ν λλ©μΈ μΆκ°
},
};
export default withBundleAnalyzer(nextConfig);