-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
32 lines (28 loc) · 1.13 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
/**
Next.js can be configured through a next.config.js file in the
root of your project directory (for example, by package.json).
next.config.js is a regular Node.js module, not a JSON file.
It gets used by the Next.js server and build phases, and it's
not included in the browser build.
**/
const nextConfig = {
reactStrictMode: true,
assetPrefix: process.env.ASSET_PREFIX ?? "",
compiler: { removeConsole: false },
images: {
dangerouslyAllowSVG: true,
contentDispositionType: 'attachment',
contentSecurityPolicy: "default-src 'self'; script-src 'none'; sandbox;",
loader: 'custom',
loaderFile: './image-loader.js',
},
env: {
KEYCLOAK: process.env.KEYCLOAK ?? "false",
ASSET_PREFIX: process.env.ASSET_PREFIX ?? "",
MAPBOX_USER: process.env.MAPBOX_USER,
MAPBOX_API_KEY: process.env.MAPBOX_API_KEY,
REACT_APP_USE_GEOSERVER_PROXY: process.env.REACT_APP_USE_GEOSERVER_PROXY,
REACT_APP_SERVER_URL: process.env.REACT_APP_SERVER_URL // only used when REACT_APP_USE_GEOSERVER_PROXY is true
}
};
export default nextConfig;