blob: f5a81c86b1a694ab47cfa31abaad31514a51762e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
import NotFoundPage from "../pages/NotFoundPage.tsx";
import { renderToDOM } from "../jsx/render.ts";
import { Config } from "../config.ts";
import { Page } from "../page.ts";
export type NotFoundPage = Page;
export async function generateNotFoundPage(
config: Config,
): Promise<NotFoundPage> {
const html = await renderToDOM(
NotFoundPage(config),
);
return {
root: html,
renderer: "html",
destFilePath: "/404.html",
href: "/404.html",
};
}
|