-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathnext.config.js
38 lines (35 loc) · 904 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
34
35
36
37
38
/** @type {import('next').NextConfig} */
const withPlugins = require("next-compose-plugins");
const { i18n } = require("./next-i18next.config");
// const withGraphql = require("next-plugin-graphql");
const withPWA = require("next-pwa")({
dest: "public",
});
module.exports = withPlugins(
[
[
withPWA,
{
pwa: {
dest: "public",
register: true,
skipWaiting: true,
},
},
],
// [withGraphql],
],
{
i18n,
reactStrictMode: false, // Bug requires strict-mode false: https://github.com/plouc/nivo/issues/2009
poweredByHeader: false,
}
);
// module.exports = withPWA({
// // next.js config
// })
// module.exports = withGraphql({
// i18n,
// reactStrictMode: false, // Bug requires strict-mode false: https://github.com/plouc/nivo/issues/2009
// poweredByHeader: false, // Remove powered by header
// });