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 { epoxyPath } from "@mercuryworkshop/epoxy-transport";
|
||||||
import { libcurlPath } from "@mercuryworkshop/libcurl-transport";
|
import { libcurlPath } from "@mercuryworkshop/libcurl-transport";
|
||||||
import path from "path";
|
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();
|
const __dirname = path.resolve();
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
|
|
@ -48,16 +51,16 @@ export default defineConfig({
|
||||||
],
|
],
|
||||||
server: {
|
server: {
|
||||||
proxy: {
|
proxy: {
|
||||||
"/bare": {
|
"/bare/": {
|
||||||
target: "http://localhost:8080/",
|
target: "http://localhost:8080/",
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
rewrite: (path) => path.replace(/^\/bare/, "")
|
rewrite: (path) => path.replace(/^\/bare\//, "")
|
||||||
},
|
},
|
||||||
"/wisp": {
|
"/wisp/": {
|
||||||
target: "https://ruby.rubynetwork.co/wisp/",
|
target: "http://ruby.rubynetwork.co/wisp/",
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
ws: true,
|
ws: true,
|
||||||
rewrite: (path) => path.replace(/^\/wisp/, "")
|
rewrite: (path) => path.replace(/^\/wisp\//, "")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue