-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
33 lines (31 loc) · 979 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 {i18n} = require('./next-i18next.config');
const nextConfig = {
images: {
remotePatterns: [
{
protocol: "https",
hostname: "**",
},
],
},
reactStrictMode: true,
swcMinify: true,
i18n,
env: {
REACT_APP_MERMER_PHONE: process.env.REACT_APP_MERMER_PHONE,
REACT_APP_MERMER_EMAIL: process.env.REACT_APP_MERMER_EMAIL,
REACT_APP_MERMER_COPYRIGHT: process.env.REACT_APP_MERMER_COPYRIGHT,
},
// Info(20240131) Murky transpilePackage, reactStrictMode, webpack is for mdxEditor
transpilePackages: ['@mdxeditor/editor', 'react-diff-view'],
reactStrictMode: true,
webpack: (config) => {
// this will override the experiments
config.experiments = { ...config.experiments, topLevelAwait: true }
// this will just update topLevelAwait property of config.experiments
// config.experiments.topLevelAwait = true
return config
}
};
module.exports = nextConfig;