-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnext.config.js
69 lines (66 loc) · 1.32 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
// const removeImports = require("next-remove-imports")()
const DFXWebPackConfig = require("./dfx.webpack.config")
DFXWebPackConfig.initCanisterIds()
module.exports = {
webpack: (
config,
// eslint-disable-next-line no-unused-vars
{ buildId, dev, isServer, defaultLoaders, nextRuntime, webpack }
) => {
config.experiments = {
topLevelAwait: true
}
// Important: return the modified config
return config
},
eslint: {
dirs: ["pages", "ui"]
},
async rewrites() {
return [
{
source: "/:path*.html",
destination: "/:path*"
},
{
source: "/getpaid",
destination: "/"
},
{
source: "/newmeeting",
destination: "/"
},
{
source: "/beamout/:path*",
destination: "/"
},
{
source: "/meeting/:path*",
destination: "/"
},
{
source: "/mybeams",
destination: "/"
},
{
source: "/mybeams/:path*",
destination: "/"
},
{
source: "/connect",
destination: "/"
}
]
},
images: {
unoptimized: true,
remotePatterns: [
{
protocol: "https",
hostname: "marketplacecontent.zoom.us",
port: "",
pathname: "/zoom_marketplace/img/**"
}
]
}
}