-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.js
More file actions
30 lines (29 loc) · 988 Bytes
/
next.config.js
File metadata and controls
30 lines (29 loc) · 988 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
// eslint-disable-next-line @typescript-eslint/no-var-requires
const withBundleAnalyzer = require('@next/bundle-analyzer')({
enabled: process.env.ANALYZE === 'true',
});
// eslint-disable-next-line @typescript-eslint/no-var-requires
const withPlugins = require('next-compose-plugins'); //여러 플러그인을 사용하기 위한 라이브러리
// eslint-disable-next-line @typescript-eslint/no-var-requires
const withPWA = require('next-pwa')({
//PWA를 사용하기 위한 라이브러리
dest: 'public',
disable: process.env.NODE_ENV === 'development',
});
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: false,
compiler: {
styledComponents: true,
},
env: {
URL: 'http://localhost:3000',
KAKAO_CLIENT_SECRET: 'aEuOy5Dj6HILcuDDfnyRXxbvzm1gMdWL',
KAKAO_RESTAPI_KEY: 'f417de962e4f7161ae761a86c4653cd2',
},
i18n: {
locales: ['ko'],
defaultLocale: 'ko',
},
};
module.exports = withPlugins([withBundleAnalyzer, withPWA], nextConfig);