refactor: replace references of options with config (#1903)
This commit is contained in:
@@ -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;
|
||||
@@ -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);
|
||||
|
||||
@@ -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" });
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user