feat: add nice error page during development (#122)

Co-authored-by: Luca Casonato <hello@lcas.dev>
This commit is contained in:
Bartek Iwańczuk
2022-03-07 21:05:19 +01:00
committed by GitHub
co-authored by Luca Casonato
parent 837d2a7f5e
commit 026ed86f40
10 changed files with 149 additions and 44 deletions
+1
View File
@@ -0,0 +1 @@
export * from "../../runtime.ts";
+15
View File
@@ -0,0 +1,15 @@
// DO NOT EDIT. This file is generated by `fresh`.
// This file SHOULD be checked into source version control.
// To update this file, run `fresh routes`.
import * as $0 from "./routes/index.tsx";
const manifest = {
routes: {
"./routes/index.tsx": $0,
},
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 "./server_deps.ts";
import manifest from "./fresh.gen.ts";
await start(manifest);
+6
View File
@@ -0,0 +1,6 @@
/** @jsx h */
import { h } from "../client_deps.ts";
export default function Home(): null {
throw new Error("boom!");
}
+1
View File
@@ -0,0 +1 @@
export * from "../../server.ts";