-
Notifications
You must be signed in to change notification settings - Fork 1
/
next.config.js
26 lines (24 loc) · 722 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
/** @type {import('next').NextConfig} */
const withPWA = require("next-pwa");
const runtimeCaching = require("next-pwa/cache");
const withMDX = require("@next/mdx")({
extension: /\.mdx?$/,
options: {
remarkPlugins: [],
rehypePlugins: [],
// If you use `MDXProvider`, uncomment the following line.
providerImportSource: "@mdx-js/react",
},
});
module.exports = withMDX(
withPWA({
pwa: {
dest: "public",
runtimeCaching,
disable: process.env.DISABLE_PWA == 'true', // env variable is read as string without type convention
},
reactStrictMode: true,
// Append the default value with md extensions
pageExtensions: ["ts", "tsx", "js", "jsx", "md", "mdx"],
})
);