-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
39 lines (37 loc) · 1.14 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
const withPWA = require("next-pwa");
module.exports = withPWA({
webpack(config) {
config.module.rules.push({
test: /\.svg$/,
issuer: {
test: /\.(js|ts)x?$/,
},
use: ['@svgr/webpack'],
});
return config;
},
env: {
FIREBASE_APIKEY: process.env.FIREBASE_APIKEY,
FIREBASE_AUTHDOMAIN: process.env.FIREBASE_AUTHDOMAIN,
FIREBASE_PROJECTID: process.env.FIREBASE_PROJECTID,
FIREBASE_STORAGEBUCKET: process.env.FIREBASE_STORAGEBUCKET,
FIREBASE_MESSAGINGSENDERID: process.env.FIREBASE_MESSAGINGSENDERID,
FIREBASE_APPID: process.env.FIREBASE_APPID,
FIREBASE_MEASUREMENTID: process.env.FIREBASE_MEASUREMENTID
},
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,
},
target: "serverless",
images: {
loader: 'imgix'
},
});