forked from fga-eps-mds/MeasureSoftGram-Front
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
35 lines (34 loc) · 876 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
/** @type {import('next').NextConfig} */
const withTM = require('next-transpile-modules')(['@mui/x-charts'])
const nextConfig = withTM(
{
reactStrictMode: false,
env: {
SERVICE_URL: process.env.SERVICE_URL,
LOGIN_REDIRECT_URL: process.env.LOGIN_REDIRECT_URL,
GITHUB_CLIENT_ID: process.env.GITHUB_CLIENT_ID,
GITHUB_SECRET: process.env.GITHUB_SECRET
},
typescript: {
ignoreBuildErrors: true,
tsconfigPath: './tsconfig.json'
},
pageExtensions: ['page.ts', 'page.tsx', 'next.tsx', 'next.ts'],
devIndicators: {
buildActivity: false
},
trailingSlash: true,
modularizeImports: {
'@mui/material': {
transform: '@mui/material/{{member}}',
},
'@mui/lab': {
transform: '@mui/lab/{{member}}',
},
'@mui/x-charts': {
transform: '@mui/x-charts/{{member}}',
},
},
}
)
module.exports = nextConfig;