mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-16 17:46:18 +08:00
31 lines
725 B
JavaScript
31 lines
725 B
JavaScript
const { getGitVersion, getCommitHash } = require('./scripts/gitInfo');
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
productionBrowserSourceMaps: true,
|
|
reactStrictMode: false,
|
|
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(),
|
|
},
|
|
images: {
|
|
unoptimized: true,
|
|
},
|
|
// XXX not test yet
|
|
rewrites: async () => {
|
|
return [
|
|
{
|
|
source: '/api/:path*',
|
|
destination: 'http://100.77.180.48:11001/api/:path*',
|
|
},
|
|
];
|
|
},
|
|
};
|
|
|
|
module.exports = nextConfig;
|