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:
+15
-1
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user