-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.mjs
32 lines (30 loc) 路 888 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
/** @type {import('next').NextConfig} */
import("next").NextConfig;
const nextConfig = {
compiler: {
// removeConsole: false,
},
// transpilePackages: ["styled-jsx"],
transpilePackages: ["styled-jsx", "@splinetool/r3f-spline", "@splinetool/loader"],
output: "standalone", // SSG (export) vs SSR (standalone)
// typescript: {
// ignoreBuildErrors: false,
// },
reactStrictMode: true,
swcMinify: true,
images: {
unoptimized: true,
},
// productionBrowserSourceMaps: true,
// compress: false,
webpack: (config) => {
// config.output.pathinfo = true;
// config.optimization.concatenateModules = false;
// config.optimization.usedExports = false;
// config.optimization.splitChunks = false;
// config.optimization.minimize = false;
config.resolve.fallback = { fs: false };
return config;
},
};
export default nextConfig;