2020-04-14 08:46:59 +02:00
|
|
|
require('dotenv').config();
|
2020-04-12 18:27:01 +02:00
|
|
|
const withBundleAnalyzer = require('@next/bundle-analyzer')({
|
|
|
|
enabled: process.env.ANALYZE === 'true',
|
|
|
|
});
|
2020-04-14 08:25:58 +02:00
|
|
|
|
|
|
|
module.exports = withBundleAnalyzer({
|
|
|
|
poweredByHeader: false,
|
|
|
|
assetPrefix: process.env.BASE_PATH || '',
|
|
|
|
serverRuntimeConfig: {
|
|
|
|
nodeEnv: process.env.NODE_ENV || 'development',
|
|
|
|
logLevel: process.env.LOG_LEVEL || 'silly',
|
|
|
|
hodlKey: process.env.HODL_KEY || '',
|
|
|
|
},
|
|
|
|
publicRuntimeConfig: {
|
|
|
|
nodeEnv: process.env.NODE_ENV || 'development',
|
2020-04-14 23:02:33 +02:00
|
|
|
apiUrl: `${process.env.BASE_PATH || ''}/api/v1`,
|
2020-04-16 10:57:22 +02:00
|
|
|
apiBaseUrl: `${process.env.API_BASE_URL || ''}/api/v1`,
|
2020-04-14 08:25:58 +02:00
|
|
|
basePath: process.env.BASE_PATH || '',
|
|
|
|
npmVersion: process.env.npm_package_version || '0.0.0',
|
2020-04-17 20:11:37 +02:00
|
|
|
trustNeeded: process.env.TRUST || false,
|
2020-04-14 08:25:58 +02:00
|
|
|
},
|
|
|
|
});
|