This commit is contained in:
toom1996
2026-09-14 00:42:45 +08:00
parent d6cb616337
commit 548155625d
22 changed files with 707 additions and 454 deletions

11
src/lib/config/env.dev.ts Normal file
View File

@ -0,0 +1,11 @@
// src/lib/config/env.dev.ts — 开发环境配置(astro dev / MODE=development)
import type { AppConfig } from "./types"
const config: AppConfig = {
baseApi: "http://localhost:8090", // 浏览器运行期直连本地后端
baseApiSsr: "http://localhost:8090", // 按需渲染 SSR 取数(绝对 URL)
baseApiSsg: "http://localhost:8091", // 构建期 SSG 内部端口
idleLogoutDays: 7, // 超过 7 天没访问则登出(0 = 关闭空闲登出)
}
export default config