Apparently Response.redirect does not work with relative paths

This commit is contained in:
regalijan 2023-10-19 16:51:09 -04:00
parent 1e35a11951
commit 9bb2d7396d
Signed by: regalijan
GPG Key ID: 5D4196DA269EF520

View File

@ -1,3 +1,8 @@
export async function onRequestGet(context: RequestContext) { export async function onRequestGet(_context: RequestContext) {
return Response.redirect("/api/auth/oauth"); return new Response(null, {
headers: {
location: "/api/auth/oauth",
},
status: 302,
});
} }