add points
This commit is contained in:
1 parent
2753a5f2ed
commit
9dcbf30886
6 files changed
+311
-8
No files matched your search
@@ -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,
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in new issue
Block a user