refactor: replace references of options with config (#1903)
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import { FreshConfig } from "$fresh/server.ts";
|
||||
|
||||
export default {
|
||||
async render(_ctx, render) {
|
||||
await new Promise<void>((r) => r());
|
||||
const body = render();
|
||||
if (typeof body !== "string") {
|
||||
throw new Error("body is missing");
|
||||
}
|
||||
},
|
||||
} as FreshConfig;
|
||||
Reference in New Issue
Block a user