thunderhub/next.config.js

23 lines
764 B
JavaScript
Raw Normal View History

2020-04-14 08:46:59 +02:00
require('dotenv').config();
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`,
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
},
});