-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
47 lines (44 loc) · 1.01 KB
/
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
44
45
46
47
const rewrites = require('./rewrites/index');
/** @type {import('next').NextConfig} */
// const nextConfig = {
// reactStrictMode: true,
// async rewrites() {
// return rewrites;
// },
// }
const projectType = process.env.NEXT_PUBLIC_PROJECT_TYPE;
module.exports = {
assetPrefix: projectType === 'referral' ? '/' : '/cryptoGift',
reactStrictMode: false,
async rewrites() {
return rewrites;
},
experimental: {
'react-use': {
transform: 'react-use/lib/{{member}}',
},
lodash: {
transform: 'lodash/{{member}}',
},
},
// compiler: {
// removeConsole: {
// exclude: ['error'],
// },
// },
productionBrowserSourceMaps: true,
publicRuntimeConfig: {
basePath: projectType === 'referral' ? '/' : '/cryptoGift',
},
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'portkey-did.s3.ap-northeast-1.amazonaws.com',
port: '',
// pathname: '/rmsportal/**',
pathname: '/**',
},
],
},
};