Add static deployment build and guide
This commit is contained in:
16
static/entry.tsx
Normal file
16
static/entry.tsx
Normal 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
14
static/index.html
Normal 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>
|
||||
Reference in New Issue
Block a user