-
Notifications
You must be signed in to change notification settings - Fork 4
/
next.config.js
26 lines (24 loc) · 885 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
/** @type {import('next').NextConfig} */
const nextConfig = {
basePath: process.env.NEXT_PUBLIC_BASE_PATH,
assetPrefix: process.env.NEXT_PUBLIC_BASE_PATH,
reactStrictMode: true,
images: {
domains: ['localhost'],
},
serverRuntimeConfig: {
manifestServiceUrl: `${process.env.SCAN_SERVICE_URL}/manifest`,
metadataServiceUrl: `${process.env.SCAN_SERVICE_URL}/metadata`,
},
publicRuntimeConfig: {
serviceUrl: process.env.PUBLIC_SCAN_SERVICE_URL,
manifestServiceUrl: `${process.env.PUBLIC_SCAN_SERVICE_URL}/manifest`,
metadataServiceUrl: `${process.env.PUBLIC_SCAN_SERVICE_URL}/metadata`,
bootstrapServiceUrl: `${process.env.PUBLIC_BOOTSTRAP_SERVICE_URL}`,
},
webpack: (config, { isServer, webpack }) => {
config.plugins.push(new webpack.IgnorePlugin(/@blueprintjs\/(core|icons)/));
return config;
}
}
module.exports = nextConfig