forked from Team-SPREAD/Puzzle-FE
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.js
More file actions
43 lines (41 loc) ยท 1.05 KB
/
next.config.js
File metadata and controls
43 lines (41 loc) ยท 1.05 KB
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
// @ts-check
const path = require('path');
/** @type {import('next').NextConfig} */
const nextConfig = {
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'liveblocks.io',
pathname: '/**',
},
{
protocol: 'https',
hostname: 'aws-file-uploder.s3.ap-northeast-2.amazonaws.com',
pathname: '/**',
},
{
protocol: 'https',
hostname: 'lh3.googleusercontent.com',
pathname: '/**',
},
{
protocol: 'https',
hostname: 'spread-puzzle-bucket.s3.ap-northeast-2.amazonaws.com',
pathname: '/**',
},
],
},
webpack: (config, { isServer }) => {
config.cache = false;
if (!isServer) {
// Ensure that all imports of `yjs` resolve to the same instance
config.resolve.alias['yjs'] = path.resolve(__dirname, 'node_modules/yjs');
}
return config;
},
typescript: {
ignoreBuildErrors: false, // ๊ฒฝ๊ณ ๋ฅผ ๋ฌด์ํ์ฑ๋ก ๋น๋ origin true , ํ
์คํธ์ฉ ์
๋๋ค.
},
};
module.exports = nextConfig;