-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.mjs
69 lines (62 loc) · 1.68 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
import withBundleAnalyzer from '@next/bundle-analyzer';
import withPlaiceholder from '@plaiceholder/next';
import createNextIntlPlugin from 'next-intl/plugin';
import withPWA from 'next-pwa';
const prod = process.env.NODE_ENV === 'production';
const withNextIntl = createNextIntlPlugin('./i18n.ts');
const withPWAConfig = withPWA({
dest: 'public',
disable: !prod,
});
const withBundleAnalyzerConfig = withBundleAnalyzer({
enabled: process.env.ANALYZE === 'true',
});
/** @type {import('next').NextConfig} */
const nextConfig = {
productionBrowserSourceMaps: !prod,
crossOrigin: 'use-credentials',
webpack: (config) => {
config.module.rules.push({
test: /\.svg$/,
use: ['@svgr/webpack'],
});
return config;
},
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'via.placeholder.com',
},
{
protocol: 'https',
hostname: 'api-storage.cloud.toast.com',
},
{
protocol: 'https',
hostname: 'webinfo.dankook.ac.kr',
},
{ protocol: 'https', hostname: 'scontent.cdninstagram.com' },
{ protocol: 'https', hostname: 'sgyoonseul24.notion.site' },
{ protocol: 'https', hostname: 'scontent-den2-1.cdninstagram.com' },
{ protocol: 'https', hostname: 'www.danfesta.com' },
],
},
};
export default withBundleAnalyzerConfig(
withPWAConfig(
withNextIntl(withPlaiceholder(nextConfig)),
{
silent: true,
org: 'danfesta',
project: 'javascript-nextjs',
},
{
widenClientFileUpload: true,
tunnelRoute: '/monitoring',
hideSourceMaps: true,
disableLogger: true,
automaticVercelMonitors: true,
},
),
);