add backend & full support for cloudflare workers
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user