-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.mjs
More file actions
31 lines (27 loc) · 817 Bytes
/
next.config.mjs
File metadata and controls
31 lines (27 loc) · 817 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
30
31
import createNextIntlPlugin from 'next-intl/plugin';
import {fileURLToPath} from "node:url";
import createJiti from "jiti";
const jiti = createJiti(fileURLToPath(import.meta.url));
const withNextIntl = createNextIntlPlugin("src/i18n/request.ts");
if (process.env.NODE_ENV !== "test") jiti("./src/env");
/** @type {import('next').NextConfig} */
const nextConfig = {
modularizeImports: {
'@mui/icons-material': {
transform: '@mui/icons-material/{{member}}',
},
},
images: {
remotePatterns: [
{
hostname: 'i.scdn.co',
protocol: 'https',
},
{
hostname: "fastly.picsum.photos",
protocol: "https",
}
]
}
}
export default withNextIntl(nextConfig);