-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathnext.config.mjs
41 lines (39 loc) · 928 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
37
38
39
40
41
/** @type {import('next').NextConfig} */
const env = {};
const disallowedPrefixes = ["NODE_", "__", "NEXT"];
for (const [key, value] of Object.entries(process.env)) {
if (!disallowedPrefixes.some((k) => key.startsWith(k))) {
env[key] = value;
}
}
/**
* @type {import('next').NextConfig}
*/
const nextConfig = {
env,
experimental: {
legacyBrowsers: false,
},
compiler: {
styledComponents: true,
emotion: true,
},
transpilePackages: ["@mui/material", "lodash-es"],
modularizeImports: {
lodash: {
transform: "lodash/{{member}}",
preventFullImport: true,
},
"@mui/material": {
transform: "@mui/material/{{member}}",
preventFullImport: true,
},
"@mui/icons-material": {
transform: "@mui/icons-material/{{member}}",
preventFullImport: true,
},
},
output: "export",
productionBrowserSourceMaps: true,
};
export default nextConfig;