Unverified Commit 5b6b2f05 authored by Athurg Gooth's avatar Athurg Gooth Committed by GitHub

fix: apiv2 failed in container (#2307)

parent fbbfb119
......@@ -5,10 +5,8 @@ import { SystemServiceDefinition } from "./types/proto/api/v2/system_service";
import { TagServiceDefinition } from "./types/proto/api/v2/tag_service";
import { UserServiceDefinition } from "./types/proto/api/v2/user_service";
const address = import.meta.env.MODE === "development" ? "http://localhost:8081" : window.location.origin;
const channel = createChannel(
address,
window.location.origin,
FetchTransport({
credentials: "include",
})
......
......@@ -19,6 +19,10 @@ export default defineConfig({
target: devProxyServer,
xfwd: true,
},
"^/memos.api.v2": {
target: devProxyServer,
xfwd: true,
},
"^/o/": {
target: devProxyServer,
xfwd: true,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment