lesson 6 verb and open firewall

This commit is contained in:
polv committed 2026-03-27 09:47:50 +07:00
1 parent bb0d979ae6
commit 0245f30b9a
3 files changed
+83 -55

No files matched your search

+21
View File
@@ -1,5 +1,7 @@
import { defineConfig, MarkdownOptions } from "vitepress";
const host = process.env.TAURI_DEV_HOST;
// https://vitepress.dev/reference/site-config
export default defineConfig({
title: "ko-grammar",
@@ -67,5 +69,24 @@ export default defineConfig({
noExternal: [],
external: ["pdfjs-dist"], // don't bundle it for SSR — leave it browser-only
},
server: {
/**
* Allow Windows Firewall via Admin PowerShell with
*
* ```
* New-NetFirewallRule -DisplayName "Vitepress Server" -Direction Inbound -Protocol TCP -LocalPort 5173 -Action Allow
* ```
*/
port: 5173,
strictPort: true,
host: host || false,
hmr: host
? {
protocol: "ws",
host,
port: 5174,
}
: undefined,
},
},
});
+1 -1
View File
@@ -29,7 +29,7 @@ async function playAudio() {
const v = voices[Math.floor(Math.random() * voices.length)];
console.log(JSON.stringify(v));
await speak({
text: mainEl.value.innerText,
text: mainEl.value.innerText.replace(/[*]/gu, " "),
language: null,
rate: null,
volume: null,