-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.mjs
36 lines (32 loc) · 989 Bytes
/
next.config.mjs
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
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
output: "standalone",
trailingSlash: true,
logging: {
fetches: {
fullUrl: true,
},
},
poweredByHeader: false,
// Configure image domains for next/image here
// images: {
// remotePatterns: [
// {
// protocol: "https",
// hostname: "IMAGE_DOMAIN",
// },
// ],
// },
// If using a custom cache handler, set the path here
// cacheHandler: process.env.NODE_ENV === "production" ? "cache-handler.mjs" : undefined,
// https://www.highlight.io/blog/lw5-next-js-server-sourcemaps
// at least server-side sourcemaps should always be available for debugging purposes
webpack: (config, { dev, isServer }) => {
if (!dev && isServer) {
config.devtool = "source-map";
}
return config;
},
};
export default nextConfig;