Open chioio opened 1 year ago
What Deno version are you using? I can create a URL like that with no problem in Deno v1.33.2:
❯ deno
Deno 1.33.2
exit using ctrl+d, ctrl+c, or close()
REPL is running with all permissions allowed.
To specify permissions, run `deno repl` with allow flags.
> const u = new URL('http://xxx.xxx.xxx.xxx:8000/api/auth/whoami')
undefined
> u
URL {
href: "http://xxx.xxx.xxx.xxx:8000/api/auth/whoami",
origin: "http://xxx.xxx.xxx.xxx:8000",
protocol: "http:",
username: "",
password: "",
host: "xxx.xxx.xxx.xxx:8000",
hostname: "xxx.xxx.xxx.xxx",
port: "8000",
pathname: "/api/auth/whoami",
hash: "",
search: ""
}
>
What Deno version are you using? I can create a URL like that with no problem in Deno v1.33.2:
❯ deno Deno 1.33.2 exit using ctrl+d, ctrl+c, or close() REPL is running with all permissions allowed. To specify permissions, run `deno repl` with allow flags. > const u = new URL('http://xxx.xxx.xxx.xxx:8000/api/auth/whoami') undefined > u URL { href: "http://xxx.xxx.xxx.xxx:8000/api/auth/whoami", origin: "http://xxx.xxx.xxx.xxx:8000", protocol: "http:", username: "", password: "", host: "xxx.xxx.xxx.xxx:8000", hostname: "xxx.xxx.xxx.xxx", port: "8000", pathname: "/api/auth/whoami", hash: "", search: "" } >
deno 1.33.2
But not work when set proxy
in vite.config.mts
. It seems vite default proxy library not support using deno.
App with backend api proxy got error.
Error: