-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
33 lines (31 loc) · 975 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
/** @type {import('next').NextConfig} */
const basePath = process.env.NEXT_PUBLIC_SITE_BASE_PATH || undefined;
const nextConfig = {
output: 'export',
reactStrictMode: true,
trailingSlash: false,
assetPrefix: basePath,
basePath: basePath,
// experimental: {
// // we load metadata when build-time, which is very very slow.
// // and those metadata are immutable and could be cached.
// // however, caching is not available crossing different threads,
// // so we just use single thread to build,
// // and it's faster than using multiple threads (because of cache).
// cpus: 1,
// workerThreads: false,
// },
images: {
unoptimized: true,
remotePatterns: [
{
protocol: "https",
hostname: "i.creativecommons.org",
},
],
},
};
const withBundleAnalyzer = require("@next/bundle-analyzer")({
enabled: process.env.TEST_ENV === "analyze",
});
module.exports = withBundleAnalyzer( nextConfig );