Add static deployment build and guide

This commit is contained in:
Jacky Ser
2026-08-11 17:37:11 +08:00
parent 775ccf82ab
commit 42c21dd024
11 changed files with 168 additions and 2 deletions

16
static/entry.tsx Normal file
View File

@@ -0,0 +1,16 @@
import { StrictMode } from "react";
import { createRoot } from "react-dom/client";
import Home from "../app/page";
import "../app/globals.css";
const root = document.getElementById("root");
if (!root) {
throw new Error("Static app root was not found.");
}
createRoot(root).render(
<StrictMode>
<Home />
</StrictMode>,
);

14
static/index.html Normal file
View File

@@ -0,0 +1,14 @@
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="theme-color" content="#185ee8" />
<meta name="description" content="高徳乐 AI 舵机选型助手,支持产品目录浏览、参数筛选和 AI 初选。" />
<title>高徳乐 AI 舵机选型助手</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="./entry.tsx"></script>
</body>
</html>