-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathnext.config.js
47 lines (45 loc) · 1.13 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
/** @type {import('next').NextConfig} */
const config = require("./src/config/config.json");
const nextConfig = {
webpack: (config, options) => {
config.resolve.alias.canvas = false
// config.resolve.alias.encoding = false
config.module.rules.push({
test: /\.woff2?(\?v=\d+\.\d+\.\d+)?$/,
type: "asset/resource",
parser: { dataUrlCondition: { maxSize: 100000 } },
})
return config
},
reactStrictMode: true,
basePath: config.base_path !== "/" ? config.base_path : "",
trailingSlash: config.site.trailing_slash,
// images: {
// domains: ['uploadthing.com', 'lh3.googleusercontent.com', "i.ibb.co", "utfs.io"],
// },
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'uploadthing.com',
pathname: '**',
},
{
protocol: 'https',
hostname: 'lh3.googleusercontent.com',
pathname: '**',
},
{
protocol: 'https',
hostname: 'i.ibb.co',
pathname: '**',
},
{
protocol: 'https',
hostname: 'utfs.io',
pathname: '**',
}
]
}
};
module.exports = nextConfig;