add points

This commit is contained in:
polv committed 2026-03-27 15:42:04 +07:00
1 parent 2753a5f2ed
commit 9dcbf30886
6 files changed
+311 -8

No files matched your search

+17
View File
@@ -1,5 +1,8 @@
import { defineConfig } from "vitepress";
//@ts-ignore
const host = process.env.TAURI_DEV_HOST;
// https://vitepress.dev/reference/site-config
export default defineConfig({
title: "zh grammar",
@@ -18,4 +21,18 @@ export default defineConfig({
},
},
},
vite: {
server: {
port: 5173,
strictPort: true,
host: host || false,
hmr: host
? {
protocol: "ws",
host,
port: 5174,
}
: undefined,
},
},
});