End with a trailing /
This commit is contained in:
parent
8c895090c8
commit
218ab89113
1 changed files with 8 additions and 5 deletions
|
|
@ -7,6 +7,9 @@ import { dynamicPath } from "@nebula-services/dynamic";
|
|||
import { epoxyPath } from "@mercuryworkshop/epoxy-transport";
|
||||
import { libcurlPath } from "@mercuryworkshop/libcurl-transport";
|
||||
import path from "path";
|
||||
import { createBareServer } from "@tomphttp/bare-server-node";
|
||||
import wisp from "wisp-server-node";
|
||||
import http from "http";
|
||||
const __dirname = path.resolve();
|
||||
|
||||
export default defineConfig({
|
||||
|
|
@ -48,16 +51,16 @@ export default defineConfig({
|
|||
],
|
||||
server: {
|
||||
proxy: {
|
||||
"/bare": {
|
||||
"/bare/": {
|
||||
target: "http://localhost:8080/",
|
||||
changeOrigin: true,
|
||||
rewrite: (path) => path.replace(/^\/bare/, "")
|
||||
rewrite: (path) => path.replace(/^\/bare\//, "")
|
||||
},
|
||||
"/wisp": {
|
||||
target: "https://ruby.rubynetwork.co/wisp/",
|
||||
"/wisp/": {
|
||||
target: "http://ruby.rubynetwork.co/wisp/",
|
||||
changeOrigin: true,
|
||||
ws: true,
|
||||
rewrite: (path) => path.replace(/^\/wisp/, "")
|
||||
rewrite: (path) => path.replace(/^\/wisp\//, "")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue