-
-
Notifications
You must be signed in to change notification settings - Fork 43
/
next.config.js
33 lines (32 loc) · 986 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
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: false,
};
const withPWA = require("next-pwa");
const runtimeCaching = require("next-pwa/cache");
const withReactSvg = require("next-react-svg");
const path = require("path");
require("dotenv").config();
module.exports = withPWA(
withReactSvg({
pwa: {
disable: process.env.NODE_ENV === "development",
dest: "public",
register: true,
runtimeCaching,
buildExcludes: [
/\/*server\/middleware-chunks\/[0-9]*[a-z]*[A-Z]*\.js$/,
/middleware-manifest\.json$/,
/middleware-runtime\.js$/,
/_middleware\.js$/,
/^.+\\_middleware\.js$/,
],
publicExcludes: ["!robots.txt"],
},
nextConfig,
include: path.resolve(__dirname, "src/assets/svgs"),
webpack(config) {
return config;
},
})
);