End with a trailing /

This commit is contained in:
MotorTruck1221 2024-03-21 11:47:59 -06:00
parent 8c895090c8
commit 218ab89113
No known key found for this signature in database
GPG key ID: 06901A625432AC21

View file

@ -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\//, "")
} }
} }
} }