-
Notifications
You must be signed in to change notification settings - Fork 1
/
next.config.js
33 lines (30 loc) · 989 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
// next.config.js
const withImages = require("next-images");
const withFonts = require("next-fonts");
const withPWA = require("next-pwa");
const runtimeCaching = require("next-pwa/cache");
const dev = process.env.NODE_ENV === "production";
module.exports = withPWA(
withFonts(
withImages({
pwa: {
disable: dev ? false : true,
runtimeCaching,
dest: "public",
},
env: {
SITE_URL: "https://sepris.com",
PRODUCTION_ENDPOINT: "https://core.sepris.com",
SENTRY:
"https://ea691a89876c41c6b1e016d8a0f204af@o578542.ingest.sentry.io/5734819",
// "https://5457324b508844abba775737bc14838e@sentry.io/1547488",
GOOGLE_CAPTCHA: "6Ler8sIZAAAAAP_s64xgDM2HCm03wCuARkotJani",
},
webpack(config, options) {
compress = true;
return config;
},
crossOrigin: "anonymous",
})
)
);