Skip to content
Snippets Groups Projects
Commit 54f422bf authored by Xiao Gui's avatar Xiao Gui
Browse files

chore: fix backend url

parent 87355540
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,7 @@ export const BACKENDURL = BACKEND_URL && /^http/.test(BACKEND_URL)
: (() => {
const url = new URL(window.location.href)
const { protocol, hostname, pathname } = url
return `${protocol}//${hostname}${pathname}`
return `${protocol}//${hostname}${pathname.replace(/\/$/, '')}/${BACKEND_URL}`
})() || 'http://localhost:3000/'
export const MIN_REQ_EXPLAINER = `
......
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