Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chibat committed Jan 14, 2024
1 parent 30f3571 commit 04e8681
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion routes/_middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ export async function handler(
}
const url = new URL(_req.url);
if (url.hostname === "leaves.deno.dev") {
return Response.redirect("https://leaves.chiba.dev", 301); // Moved Permanently
url.hostname = "leaves.chiba.dev";
return Response.redirect(url, 301); // Moved Permanently
}
if (url.pathname === "/sitemap.xml") {
const users = await selectUsers();
Expand Down

0 comments on commit 04e8681

Please sign in to comment.