mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-11-27 05:16:13 +03:00
21 lines
549 B
JavaScript
21 lines
549 B
JavaScript
// @ts-check
|
|
const { getGitVersion, getCommitHash } = require('./scripts/gitInfo');
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
productionBrowserSourceMaps: true,
|
|
reactStrictMode: true,
|
|
swcMinify: false,
|
|
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,
|
|
};
|
|
|
|
module.exports = nextConfig;
|