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
This commit is contained in:
2026-06-23 16:34:00 +00:00
parent 084387174b
commit 00a46a0bf9
12 changed files with 531 additions and 40 deletions
+15 -1
View File
@@ -1,7 +1,21 @@
import type { NextConfig } from "next";
// 静态导出开关:BUILD_EXPORT=true 时启用 output:export + basePath
// 这样 dev 服务器不受影响,仅构建静态资源时切换配置
const isExport = process.env.BUILD_EXPORT === "true";
const nextConfig: NextConfig = {
output: "standalone",
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,