-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
45 lines (38 loc) · 1.03 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
/* eslint-disable @typescript-eslint/no-var-requires */
const withPWA = require("next-pwa");
/** @type {import('next').NextConfig} */
module.exports = withPWA({
pwa: {
disable:
process.env.NODE_ENV === "development" ||
process.env.NODE_ENV === "preview" ||
process.env.NODE_ENV === "production",
// delete two lines above to enable PWA in production deployment
// add your own icons to public/manifest.json
// to re-generate manifest.json, you can visit https://tomitm.github.io/appmanifest/
dest: "public",
register: true,
},
reactStrictMode: true,
images: {
domains: ['0xoasis-media-testnet.s3.amazonaws.com', 'cdn-testnet.aspect.co'],
},
// webpack: (config, { isServer }) => {
// // Fixes npm packages that depend on `fs` module
// if (!isServer) {
// config.node = {
// fs: 'empty'
// }
// }
// return config
// },
build: {
extend(config, { }) {
config.node = {
fs: 'empty'
}
}
}
});
// module.exports = {
// }