-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathnext.config.js
31 lines (31 loc) · 977 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
module.exports = () => ({
typescript: {
// !! WARN !!
// Dangerously allow production builds to successfully complete even if
// your project has type errors.
// !! WARN !!
ignoreBuildErrors: true,
},
reactStrictMode: true,
serverRuntimeConfig: {
AUTH_COOKIE_NAME: process.env.AUTH_COOKIE_NAME,
CONSOLE_BACKEND_ENDPOINT: process.env.CONSOLE_BACKEND_ENDPOINT,
CONSOLE_BACKEND_IMG_ENDPOIN: process.env.CONSOLE_BACKEND_IMG_ENDPOIN,
NEXT_PUBLIC_MAP_BOX_ACCESS_TOKEN: process.env.NEXT_PUBLIC_MAP_BOX_ACCESS_TOKEN,
},
publicRuntimeConfig: {
APP_ID: process.env.APP_ID,
CONSOLE_BACKEND_ENDPOINT: process.env.CONSOLE_BACKEND_ENDPOINT,
CONSOLE_BACKEND_IMG_ENDPOIN: process.env.CONSOLE_BACKEND_IMG_ENDPOIN,
},
images: {
domains: [
'saddam-rest-api.herokuapp.com',
'localhost',
'lh3.googleusercontent.com',
'flagcdn.com',
'upload.wikimedia.org',
'res.cloudinary.com',
],
},
});