add backend & full support for cloudflare workers

This commit is contained in:
2026-03-03 15:22:40 +08:00
parent 8dada7f9e3
commit da0a5e29cc
16 changed files with 12978 additions and 421 deletions

View File

@@ -1,4 +1,5 @@
import { defineConfig } from "vite"
import tailwindcss from "@tailwindcss/vite"
import { dirname, resolve } from "node:path"
import { fileURLToPath } from "node:url"
@@ -6,13 +7,13 @@ const frontendDir = dirname(fileURLToPath(import.meta.url))
const repoRootDir = resolve(frontendDir, "..")
export default defineConfig({
plugins: [tailwindcss()],
server: {
fs: {
allow: [repoRootDir],
},
proxy: {
"/api": "http://localhost:8080",
"/wisp": { target: "ws://localhost:8080", ws: true },
"/wisp": { target: "ws://localhost:8787", ws: true },
},
},
resolve: {