forked from xmtplabs/xmtp-inbox-web
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.js
More file actions
26 lines (23 loc) · 707 Bytes
/
next.config.js
File metadata and controls
26 lines (23 loc) · 707 Bytes
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
/** @type {import('next').NextConfig} */
const withPWA = require("next-pwa")({
dest: "public",
register: true,
skipWaiting: true,
});
const nextConfig = withPWA({
// Not setting reactStrictMode here due to issues with modal compatibility, but rest of app is wrapped in strict mode.
images: {
loader: "akamai",
path: "",
},
webpack: (config, { isServer }) => {
if (!isServer) {
// Fixes npm packages that depend on `fs` module
// https://github.com/vercel/next.js/issues/7755#issuecomment-937721514
config.resolve.fallback.fs = false;
}
config.resolve.mainFields = ["browser", "main", "module"];
return config;
},
});
module.exports = nextConfig;