-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
46 lines (40 loc) · 1.3 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
const configs = {
development: {
NEXT_PUBLIC_ENV: 'local',
NEXT_PUBLIC_GRAPHQL_URL: 'https://regenbogen-ice.de/graphql',
NEXT_PUBLIC_APP_BASE: 'https://mainpc20481.ppluss.de',
},
canary: {
NEXT_PUBLIC_ENV: 'canary',
NEXT_PUBLIC_GRAPHQL_URL: 'https://dev.regenbogen-ice.de/graphql',
NEXT_PUBLIC_APP_BASE: 'https://dev.regenbogen-ice.de',
NEXT_PUBLIC_SENTRY_DSN: 'https://[email protected]/3',
NEXT_PUBLIC_ACKEE_UUID: '5534184d-108a-47a9-aced-3376820bb486',
},
production: {
NEXT_PUBLIC_ENV: 'production',
NEXT_PUBLIC_GRAPHQL_URL: 'https://regenbogen-ice.de/graphql',
NEXT_PUBLIC_APP_BASE: 'https://regenbogen-ice.de',
NEXT_PUBLIC_SENTRY_DSN: 'https://[email protected]/3',
NEXT_PUBLIC_ACKEE_UUID: '540a6aea-c6c8-4df5-8d6e-1bfa7a6f5472',
},
}
let configKey = 'development'
if(process.env.BUILD_ENV) {
if(process.env.BUILD_ENV === 'main') {
configKey = 'production'
} else {
configKey = process.env.BUILD_ENV
}
}
const config = configs[configKey]
module.exports = {
reactStrictMode: true,
env: config,
redirects: async () => ([
{source: '/details/:tzn', destination: '/vehicle/ICE/:tzn', permanent: false},
]),
compiler: {
styledComponents: true,
},
}