-
Notifications
You must be signed in to change notification settings - Fork 1
/
next.config.js
24 lines (24 loc) · 957 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
module.exports = {
// webpack5: true,
productionBrowserSourceMaps: true,
reactStrictMode: true,
webpack: (config, {buildId, dev, isServer, defaultLoaders, webpack}) => {
config.optimization.minimize = true;
// config.resolve.extensions =
// [ '.ts', '.mjs', '.js', '.jsx', '.json', '.wasm' ];
// Important: return the modified config
// console.log( config );
return config;
},
eslint: {
// Warning: This allows production builds to successfully complete even if
// your project has ESLint errors.
ignoreDuringBuilds: true
},
serverRuntimeConfig: {
NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN: process.env.NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN,
NEXT_PUBLIC_SITEURL: process.env.NEXT_PUBLIC_SITEURL,
NEXT_PUBLIC_DATA_URL: process.env.NEXT_PUBLIC_DATA_URL,
NEXT_PUBLIC_AIRSPACE_API_KEY: process.env.NEXT_PUBLIC_AIRSPACE_API_KEY
}
};