-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.js
More file actions
29 lines (27 loc) · 855 Bytes
/
next.config.js
File metadata and controls
29 lines (27 loc) · 855 Bytes
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
const { withContentlayer } = require("next-contentlayer2");
/** @type {import('next').NextConfig} */
const nextConfig = {
trailingSlash: true,
reactStrictMode: true,
swcMinify: true,
images: {
remotePatterns: [
{ hostname: "qiazo.com" },
{ hostname: "qiazo.cn" },
{ hostname: "lh3.googleusercontent.com" },
],
unoptimized: true,
},
experimental: {
webpackBuildWorker: true,
},
env: {
NEXT_PUBLIC_GIT_COMMIT_SHA: process.env.COMMIT_REF,
NEXT_PUBLIC_GOOGLE_ID: process.env.GOOGLE_ID,
NEXT_PUBLIC_COOKIE_BANNER_ID: process.env.COOKIE_BANNER_ID,
NEXT_PUBLIC_SHOW_PARTICLES: process.env.SHOW_PARTICLES,
NEXT_PUBLIC_WEBSITE_GLOBAL_GRAY: process.env.WEBSITE_GLOBAL_GRAY,
NEXT_PUBLIC_DISQUS_SHORTNAME: process.env.DISQUS_SHORTNAME,
},
};
module.exports = withContentlayer(nextConfig);