AFFiNE/packages/app/next.config.js

21 lines
549 B
JavaScript
Raw Normal View History

2022-11-03 13:50:27 +03:00
// @ts-check
const { getGitVersion, getCommitHash } = require('./scripts/gitInfo');
2022-09-22 10:39:53 +03:00
/** @type {import('next').NextConfig} */
2022-11-03 09:53:44 +03:00
const nextConfig = {
productionBrowserSourceMaps: true,
reactStrictMode: true,
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(),
},
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;