chunker ui redo
This commit is contained in:
@@ -1,9 +1,26 @@
|
||||
import path from "path";
|
||||
import { defineConfig } from "vite";
|
||||
import react from "@vitejs/plugin-react";
|
||||
|
||||
export default defineConfig({
|
||||
base: "/chunker/",
|
||||
plugins: [react()],
|
||||
resolve: {
|
||||
alias: {
|
||||
"@protobuf-ts/runtime": path.resolve(
|
||||
__dirname,
|
||||
"node_modules/@protobuf-ts/runtime",
|
||||
),
|
||||
"@protobuf-ts/runtime-rpc": path.resolve(
|
||||
__dirname,
|
||||
"node_modules/@protobuf-ts/runtime-rpc",
|
||||
),
|
||||
"@protobuf-ts/grpcweb-transport": path.resolve(
|
||||
__dirname,
|
||||
"node_modules/@protobuf-ts/grpcweb-transport",
|
||||
),
|
||||
},
|
||||
},
|
||||
server: {
|
||||
host: "0.0.0.0",
|
||||
port: 5174,
|
||||
@@ -11,6 +28,9 @@ export default defineConfig({
|
||||
hmr: {
|
||||
path: "/chunker/@vite/client",
|
||||
},
|
||||
fs: {
|
||||
allow: [".."],
|
||||
},
|
||||
proxy: {
|
||||
"/api": {
|
||||
target: "http://fastapi:8702",
|
||||
@@ -20,6 +40,11 @@ export default defineConfig({
|
||||
target: "http://fastapi:8702",
|
||||
changeOrigin: true,
|
||||
},
|
||||
"/grpc-web": {
|
||||
target: "http://envoy:8090",
|
||||
changeOrigin: true,
|
||||
rewrite: (p) => p.replace(/^\/grpc-web/, ""),
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user