Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
"exports": {
".": "./src/mod.ts",
"./runtime": "./src/runtime/shared.ts",
"./dev": "./src/dev/mod.ts",
"./compat": "./src/compat/mod.ts"
"./dev": "./src/dev/mod.ts"
},
"tasks": {
"test": "deno test -A --parallel src/ init/ update/ && deno test -A tests/ www/main_test.ts",
Expand Down
4 changes: 4 additions & 0 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 0 additions & 13 deletions src/compat/mod.ts

This file was deleted.

67 changes: 0 additions & 67 deletions src/compat/server.ts

This file was deleted.

22 changes: 6 additions & 16 deletions www/routes/docs/index.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,9 @@
import type { Handlers } from "fresh/compat";
import { define } from "../../utils/state.ts";

export const handler: Handlers<void> = {
export const handler = define.handlers({
GET(ctx) {
const slug = ctx.params.slug;

if (slug === "concepts/architechture") {
return new Response("", {
status: 307,
headers: { location: "/docs/concepts/architecture" },
});
}

return new Response("", {
status: 307,
headers: { location: "/docs/introduction" },
});
return ctx.url.pathname === "/concepts/architechture"
? ctx.redirect("/docs/concepts/architecture")
: ctx.redirect("/docs/introduction");
},
};
});
Loading