After I deploy my vercel project it works good, but in the preview of v0 I get a weird exception.
https://kzmpcpwr7w6ka0s1trny.lite.vusercontent.net/login
You can try entering any login and password, if you check the devtools logs you will see an exception
Login error: TypeError: n.startsWith is not a function at new window.URL (VM171 8777-c1a2e4ed2d5ae98c.js:1:67099) at w (get-request-url.ts:21:14) at Object.login (composable.ts:132:24) at async login (6ebdb52b-1939-4873-92df-c23bb9d3cd9c:31:24) at async login (8f9baea0-099c-433f-9af5-1edec14248fb:64:28) at async handleSubmit (4ac749a8-9aee-49f1-82d7-cdbd255f28c9:43:28)The trace does not look like it comes from some misconfiguration of webpack. This might be some v0 webpack bundling bug?
When I added this breakpoint, on page load I see the n gets strings. But for some reason, when my page tries to do fetch(), it gets window object instead of a string and throws an exception.