-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
70 lines (68 loc) · 1.67 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
/* eslint-disable @typescript-eslint/no-var-requires */
/** @type {import('next').NextConfig} */
const path = require('path');
const nextConfig = {
reactStrictMode: true,
sassOptions: {
includePaths: [path.join(__dirname, 'styles')],
},
webpack(config) {
const prod = process.env.NODE_ENV === 'production';
return {
...config,
mode: prod ? 'production' : 'development',
devtool: prod ? 'hidden-source-map' : 'eval',
};
},
async redirects() {
return [
{
source: '/',
destination: '/home',
permanent: true,
},
{
source: '/join',
destination: '/join/phone',
permanent: true,
},
{
source: '/mymeeting',
destination: '/mymeeting/register',
permanent: true,
},
];
},
env: {
APP_API_URL: process.env.APP_API_URL,
LOCAL_API_URL: process.env.LOCAL_API_URL,
},
images: {
domains: [
'cuser-images.githubusercontent.com',
'user-images.githubusercontent.com',
'cphoto.asiae.co.kr',
'media.bunjang.co.kr',
'www.fnnews.com',
'cdn.ksilbo.co.kr',
'cdn.ggilbo.com',
'search.pstatic.net',
'img.mbn.co.kr',
'news.nateimg.co.kr',
'encrypted-tbn0.gstatic.com',
'img.freepik.com',
'images.unsplash.com',
'media.istockphoto.com',
'dontgetserious.com',
'p4.wallpaperbetter.com',
'i.pinimg.com',
'images.all-free-download.com',
'vistapointe.net',
'hips.hearstapps.com',
'www.thegoodmorningpics.com',
'www.goodmorningimagesdownload.com',
'fiverr-res.cloudinary.com',
],
},
};
module.exports = nextConfig;