Mercurial > code > home > repos > sco-bot
diff web/vite.config.ts @ 6:a4659594f2e5
add web page
author | drewp@bigasterisk.com |
---|---|
date | Sat, 06 Jul 2024 16:44:47 -0700 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/vite.config.ts Sat Jul 06 16:44:47 2024 -0700 @@ -0,0 +1,35 @@ +import { defineConfig } from "vite"; + +export default defineConfig({ + base: "/sco/", + server: { + host: "0.0.0.0", + strictPort: true, + port: 8002, + hmr: { path: "vite-ws" }, + fs: { + allow: [ + // these are relative to config.root which is ./src/ + ".", + "../node_modules", + ], + }, + proxy: { + "/sco/query": { + target: "http://127.0.0.1:8001/", + }, + }, + }, + root: "src", + build: { + assetsDir: "src", + target: "esnext", + lib: { + entry: "src/index.ts", + formats: ["es"], + }, + }, + define: { + global: {}, + }, +});