feat(server): trailing slash configuration (#1291)

This commit is contained in:
Reed von Redwitz
2023-06-15 19:01:07 +02:00
committed by GitHub
parent 80306563d2
commit f5f8928c89
8 changed files with 106 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
#!/usr/bin/env -S deno run -A --watch=static/,routes/
import dev from "$fresh/dev.ts";
await dev(import.meta.url, "./main.ts");
+17
View File
@@ -0,0 +1,17 @@
// DO NOT EDIT. This file is generated by fresh.
// This file SHOULD be checked into source version control.
// This file is automatically updated during development when running `dev.ts`.
import * as $0 from "./routes/about.tsx";
import * as $1 from "./routes/index.tsx";
const manifest = {
routes: {
"./routes/about.tsx": $0,
"./routes/index.tsx": $1,
},
islands: {},
baseUrl: import.meta.url,
};
export default manifest;
+10
View File
@@ -0,0 +1,10 @@
/// <reference no-default-lib="true" />
/// <reference lib="dom" />
/// <reference lib="dom.asynciterable" />
/// <reference lib="deno.ns" />
/// <reference lib="deno.unstable" />
import { start } from "$fresh/server.ts";
import manifest from "./fresh.gen.ts";
await start(manifest);
+7
View File
@@ -0,0 +1,7 @@
export default function About() {
return (
<div>
About
</div>
);
}
+7
View File
@@ -0,0 +1,7 @@
export default function Home() {
return (
<div>
Hello
</div>
);
}