refactor: replace references of options with config (#1903)

This commit is contained in:
Asher Gomez
2023-10-11 09:25:03 +02:00
committed by GitHub
parent 1d12853889
commit 6ddef91d95
28 changed files with 138 additions and 127 deletions
@@ -1,4 +1,4 @@
import { FreshOptions } from "$fresh/server.ts";
import { FreshConfig } from "$fresh/server.ts";
export default {
async render(_ctx, render) {
@@ -8,4 +8,4 @@ export default {
throw new Error("body is missing");
}
},
} as FreshOptions;
} as FreshConfig;
+2 -2
View File
@@ -6,6 +6,6 @@
import { start } from "$fresh/server.ts";
import manifest from "./fresh.gen.ts";
import options from "./options.ts";
import config from "./fresh.config.ts";
await start(manifest, options);
await start(manifest, config);
+2 -2
View File
@@ -6,7 +6,7 @@
import { start } from "$fresh/server.ts";
import manifest from "./fresh.gen.ts";
import options from "./options.ts";
import config from "./fresh.config.ts";
// this just exists to function as a type check to assert that we can actually pass a key and cert in
await start(manifest, { ...options, key: "test", cert: "test" });
await start(manifest, { ...config, key: "test", cert: "test" });
+2 -2
View File
@@ -9,6 +9,6 @@
import "./polyfill_deno_deploy.ts";
import { start } from "$fresh/server.ts";
import manifest from "./fresh.gen.ts";
import options from "./options.ts";
import config from "./fresh.config.ts";
await start(manifest, options);
await start(manifest, config);