-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
38 lines (36 loc) · 1009 Bytes
/
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
/** @type {import('next').NextConfig} */
const nextConfig = {
// reactStrictMode: true,
async rewrites() {
return [
{
source: '/user',
destination: 'https://ak-47.shop/api/v1/user',
},
];
},
swcMinify: true,
webpack(config) {
config.module.rules.push({
test: /\.svg$/i,
issuer: /\.[jt]sx?$/,
use: ['@svgr/webpack'],
});
return config;
},
env: {
BASE_URL: process.env.BASE_URL,
EMAILJS_SERVICE_ID: process.env.EMAILJS_SERVICE_ID,
EMAILJS_TEMPLATE_ID: process.env.EMAILJS_TEMPLATE_ID,
EMAILJS_PUBLIC_KEY: process.env.EMAILJS_PUBLIC_KEY,
GTM_ID: process.env.GTM_ID,
GOOGLE_CLIENT_ID: process.env.GOOGLE_CLIENT_ID,
},
images: {
// lh3.googleusercontent.com: google 기본 프로필 이미지
// kr.object.ncloudstorage.com: cloud 이미지
domains: ['lh3.googleusercontent.com', 'kr.object.ncloudstorage.com'],
formats: ['image/avif', 'image/webp'],
},
};
module.exports = nextConfig;