2022-11-03 13:50:27 +03:00
|
|
|
// @ts-check
|
|
|
|
const { getGitVersion, getCommitHash } = require('./scripts/gitInfo');
|
2022-10-17 20:31:40 +03:00
|
|
|
|
2022-09-22 10:39:53 +03:00
|
|
|
/** @type {import('next').NextConfig} */
|
2022-11-03 09:53:44 +03:00
|
|
|
const nextConfig = {
|
2022-10-14 14:29:36 +03:00
|
|
|
productionBrowserSourceMaps: true,
|
2022-10-26 06:52:46 +03:00
|
|
|
reactStrictMode: true,
|
2022-10-14 14:29:36 +03:00
|
|
|
swcMinify: false,
|
2022-11-03 13:50:27 +03:00
|
|
|
publicRuntimeConfig: {
|
|
|
|
NODE_ENV: process.env.NODE_ENV,
|
|
|
|
PROJECT_NAME: process.env.npm_package_name,
|
|
|
|
BUILD_DATE: new Date().toISOString(),
|
|
|
|
CI: process.env.CI || null,
|
|
|
|
VERSION: getGitVersion(),
|
|
|
|
COMMIT_HASH: getCommitHash(),
|
|
|
|
},
|
2022-12-19 11:40:07 +03:00
|
|
|
basePath: process.env.BASE_PATH,
|
2022-11-03 09:53:44 +03:00
|
|
|
};
|
2022-09-22 10:39:53 +03:00
|
|
|
|
2022-09-23 06:43:32 +03:00
|
|
|
module.exports = nextConfig;
|