Skip to content

Commit

Permalink
Revert "rix1dotdev: add www redirect"
Browse files Browse the repository at this point in the history
This reverts commit c1be2e1.
  • Loading branch information
rix1 committed Jan 29, 2024
1 parent c1be2e1 commit 26fe3b6
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions apps/rix1.dev-lume/serve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,6 @@ const server = new Server({
root: `${Deno.cwd()}/_site`,
});

server.use(async (request, next) => {
const url = new URL(request.url);

if (url.hostname === "rix1.dev") {
return new Response(null, {
status: 307,
headers: {
Location: `https://www.rix1.dev${url.pathname}${url.search}`,
},
});
}

const response = await next(request);
return response;
});

server.start();

console.log("Listening on http://localhost:8000");

0 comments on commit 26fe3b6

Please sign in to comment.