Files
echo-nexus/next.config.ts
T
Super_Z 00a46a0bf9 Deploy: v0.5.1 static export
- New: Tutorial system (7-step onboarding with spotlight + action detection)
- UI: ResourceBar spacing optimization (gap, dividers, tabular-nums)
- UI: SettingsDialog adds tutorial replay + online play link
- Anim: tutorial pulse + pop-in keyframes
2026-06-23 16:34:00 +00:00

27 lines
699 B
TypeScript

import type { NextConfig } from "next";
// 静态导出开关:BUILD_EXPORT=true 时启用 output:export + basePath
// 这样 dev 服务器不受影响,仅构建静态资源时切换配置
const isExport = process.env.BUILD_EXPORT === "true";
const nextConfig: NextConfig = {
output: isExport ? "export" : "standalone",
// 部署到 https://gitea-pages.atdunbg.xyz/Super_Z/echo-nexus 时需要 basePath
...(isExport
? {
basePath: "/Super_Z/echo-nexus",
trailingSlash: true,
}
: {}),
images: {
unoptimized: true,
},
/* config options here */
typescript: {
ignoreBuildErrors: true,
},
reactStrictMode: false,
};
export default nextConfig;