-
Notifications
You must be signed in to change notification settings - Fork 2
/
next.config.js
35 lines (34 loc) · 760 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
/**
* Change the UI version number for each igvf-ui release.
*/
const UI_VERSION = "8.23.0";
module.exports = {
trailingSlash: true,
reactStrictMode: false,
images: {
domains: [
"lh3.googleusercontent.com",
"avatars.githubusercontent.com",
"s.gravatar.com",
"localhost",
],
},
serverRuntimeConfig: {
BACKEND_URL: process.env.BACKEND_URL || "",
},
publicRuntimeConfig: {
SERVER_URL: process.env.SERVER_URL || "",
PUBLIC_BACKEND_URL:
process.env.PUBLIC_BACKEND_URL || process.env.BACKEND_URL || "",
UI_VERSION,
},
async redirects() {
return [
{
source: "/profiles/graph.dot",
destination: "/profiles/graph.svg",
permanent: true,
},
];
},
};