feat: 收口 Rust Web 3000 主链

This commit is contained in:
lix-2026
2026-05-11 13:16:34 +08:00
parent 7f3f7d4e2f
commit 17c003976b
61 changed files with 2090 additions and 2256 deletions
+3
View File
@@ -25,6 +25,9 @@ function loadEnvAll() {
loadEnvAll();
const nextConfig: NextConfig = {
// 说明:3000 Rust 网关会把 /_next/* dev 资源代理到 3100,浏览器 Origin 仍是 127.0.0.1:3000。
// Next dev 默认会拦截这类跨 origin HMR 请求,导致客户端 hydration 不执行。
allowedDevOrigins: ["127.0.0.1", "localhost"],
// 供桌面端打包使用(Electron 内置 Next server.js + 最小依赖)。
// 说明:`pnpm run build:desktop:next` 会依赖该产物。
output: "standalone",