-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
32 lines (31 loc) · 852 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
const MillionLint = require('@million/lint');
const withPWA = require("next-pwa");
/** @type {import('next').NextConfig} */
module.exports = withPWA({
swcMinify: true,
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
},
reactStrictMode: true
});
/*{
"rewrites": [
{
"source": "/:path*",
"has": [
{
"type": "host",
"value": "blog.buddywhitman.vercel.app"
}
],
"destination": "https://buddywhitman.vercel.app/blog"
}
]
}*/