-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnext.config.js
40 lines (39 loc) · 978 Bytes
/
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
const withPWA = require("next-pwa");
module.exports = withPWA({
pwa: {
dest: "public",
},
images: {
domains: ["res.cloudinary.com"],
},
api: {
bodyParser: {
sizeLimit: "2mb",
},
},
env: {
api: process.env.PORT + "api/",
},
serverRuntimeConfig: {
// Will only be available on the server side
// mySecret: 'secret',
// secondSecret: process.env.SECOND_SECRET, // Pass through env variables
apiUrl: "api",
},
publicRuntimeConfig: {
// Will be available on both server and client
staticFolder: "/public",
},
// webpack(config, options) {
// webpack: (config, { buildId, dev, isServer, defaultLoaders, webpack }) => {
// config.plugins.push(new webpack.IgnorePlugin(/^pg-native$/));
// config.node = {
// ...(config.node || {}),
// net: 'empty',
// tls: 'empty',
// dns: 'empty',
// fs: 'empty',
// };
// return config;
// },
});