-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
45 lines (40 loc) · 1.07 KB
/
next.config.js
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
/** @type {import('next').NextConfig} */
const withPlugins = require('next-compose-plugins')
const withPWA = require('next-pwa')({
dest: 'public',
})
const withBundleAnalyzer = require('@next/bundle-analyzer')({
enabled: process.env.ANALYZE === 'true',
compress: true,
})
const nextConfig = {
reactStrictMode: false,
images: {
minimumCacheTTL: 1 * 60 * 60 * 24 * 365,
domains: ['linkhub-s3-2025.s3.ap-northeast-2.amazonaws.com'],
formats: ['image/avif', 'image/webp'],
remotePatterns: [
{
protocol: 'https',
hostname: 'linkhub-s3-2025.s3.ap-northeast-2.amazonaws.com',
port: '',
pathname: '/**',
},
],
},
async redirects() {
return [
{
source: '/kakaoLogin',
destination: `${process.env.NEXT_PUBLIC_API_ADDRESS}/oauth2/authorization/kakao`,
permanent: true,
},
{
source: '/oauth2/redirection/kakao(.*)',
destination: '/login',
permanent: true,
},
]
},
}
module.exports = withPlugins([[withBundleAnalyzer], [withPWA]], nextConfig)