forked from acmutd/hackportal
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnext.config.js
More file actions
32 lines (30 loc) · 781 Bytes
/
next.config.js
File metadata and controls
32 lines (30 loc) · 781 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
27
28
29
30
31
32
const withPWA = require('next-pwa')({
dest: 'public',
});
const runtimeCaching = require('next-pwa/cache');
const withFonts = require('next-fonts');
const nextConfig = {
reactStrictMode: true,
images: {
domains: ['lh3.googleusercontent.com', 'firebasestorage.googleapis.com', 's3.amazonaws.com'],
},
pwa: {
dest: 'public',
runtimeCaching,
disable: !process.env.ENABLE_PWA && process.env.NODE_ENV !== 'production',
},
webpack(config, options) {
config.module.rules.push({
test: /\.md$/,
use: 'raw-loader',
});
return config;
},
};
(module.exports = process.env.NODE_ENV === 'production' ? withPWA(nextConfig) : nextConfig),
withFonts({
enableSvg: true,
webpack(config, options) {
return config;
},
});