-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
25 lines (24 loc) · 805 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
/* eslint-disable @typescript-eslint/no-var-requires */
const withPWA = require("next-pwa");
/** @type {import('next').NextConfig} */
module.exports = withPWA({
pwa: {
// disable: false,
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,
skipWaiting: true,
swSrc: "service-worker.js",
reloadOnOnline: false,
buildExcludes: [/middleware-manifest.json$/],
},
reactStrictMode: true,
images: {
domains: ["i.ytimg.com"],
},
});