-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
41 lines (39 loc) · 878 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
39
40
41
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
optimizeFonts: true,
images: {
domains: ["images.microcms-assets.io"],
},
env: {
BASIC_AUTH_USER: process.env.BASIC_AUTH_USER,
BASIC_AUTH_PASSWORD: process.env.BASIC_AUTH_PASSWORD,
},
async headers() {
const headers = [];
if (process.env.NEXT_PUBLIC_VERCEL_ENV === "preview") {
headers.push({
headers: [
{
key: "X-Robots-Tag",
value: "noindex",
},
],
source: "/:path*",
});
}
return headers;
},
};
const withPWA = require("next-pwa");
module.exports = withPWA({
pwa: {
dest: "public",
register: true,
skipWaiting: true,
buildExcludes: [/middleware-manifest.json$/],
},
reactStrinctMode: true,
});
module.exports = nextConfig;