fix: add error-handler type to manifest (#1933)
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
import { ErrorPageProps } from "../../../server.ts";
|
||||
import { ErrorHandler, ErrorPageProps } from "../../../server.ts";
|
||||
|
||||
export const handler: ErrorHandler = (_req, ctx) => {
|
||||
return ctx.render();
|
||||
};
|
||||
|
||||
export default function Error500Page({ error }: ErrorPageProps) {
|
||||
return <p class="custom-500">Custom 500: {(error as Error).message}</p>;
|
||||
|
||||
Reference in New Issue
Block a user