-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
43 lines (37 loc) · 888 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
34
35
36
37
38
39
40
41
42
43
const path = require('path')
/** @type {import('next').NextConfig} */
// Remove this if you're not using Fullcalendar features
const withTM = require('next-transpile-modules')([
'@fullcalendar/common',
'@fullcalendar/react',
'@fullcalendar/daygrid',
'@fullcalendar/list',
'@fullcalendar/timegrid',
'lodash',
'react-d3-speedometer'
])
module.exports = withTM({
trailingSlash: true,
reactStrictMode: false,
experimental: {
esmExternals: false
},
webpack: config => {
config.resolve.alias = {
...config.resolve.alias,
apexcharts: path.resolve(__dirname, './node_modules/apexcharts-clevision'),
'lodash-es': 'lodash'
}
config.module.rules.push({
test: /\.svg$/,
use: ['@svgr/webpack']
})
return config
},
env: {
REACT_APP_GOOGLE_MAPS_API_KEY: 'my-value'
},
images: {
unoptimized: true
}
})