forked from 100-hours-a-week/5-chunsik-4Q-fe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.mjs
55 lines (51 loc) · 1.53 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import withAntdLess from 'next-plugin-antd-less';
import { withSentryConfig } from '@sentry/nextjs';
/** @type {import('next').NextConfig} */
const nextConfig = withAntdLess({
reactStrictMode: true,
swcMinify: true,
assetPrefix: '',
experimental: { esmExternals: true },
env: {
NEXT_PUBLIC_GA_ID: process.env.NEXT_PUBLIC_GA_ID,
NEXT_PUBLIC_API_URL: process.env.NEXT_PUBLIC_API_URL,
},
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'chunsik-dev.s3.ap-northeast-2.amazonaws.com',
port: '',
pathname: '/**',
},
{
protocol: 'https',
hostname: 'cdn.qqqq.world',
port: '',
pathname: '/**',
}
],
domains: ['cdn.qqqq.world'],
},
transpilePackages: ['antd', '@ant-design', 'rc-util', 'rc-pagination', 'rc-picker', 'rc-notification', 'rc-tooltip'],
webpack: (config) => {
config.infrastructureLogging = { debug: /PackFileCache/ };
config.resolve.alias.canvas = false;
config.cache = false;
config.module.rules.push({
test: /\.node$/,
use: 'raw-loader',
});
return config;
},
});
const sentryConfig = {
org: "chulchulhanchunsigi",
project: "pq-fe",
silent: !process.env.CI,
widenClientFileUpload: true,
hideSourceMaps: true,
disableLogger: true,
automaticVercelMonitors: true,
};
export default withSentryConfig(nextConfig, sentryConfig);