chore: remove unused runtimeJS option (#120)

This commit is contained in:
Tyler Brostrom
2022-03-07 00:14:32 +01:00
committed by GitHub
parent adfdec548a
commit 837d2a7f5e
3 changed files with 0 additions and 21 deletions
-4
View File
@@ -154,7 +154,6 @@ export class ServerContext {
name,
component,
handler: handler ?? ((req) => router.defaultOtherHandler(req)),
runtimeJS: Boolean(config?.runtimeJS ?? false),
csp: Boolean(config?.csp ?? false),
};
} else if (
@@ -174,7 +173,6 @@ export class ServerContext {
component,
handler: handler ??
((req, ctx) => router.defaultErrorHandler(req, ctx.error)),
runtimeJS: Boolean(config?.runtimeJS ?? false),
csp: Boolean(config?.csp ?? false),
};
}
@@ -502,7 +500,6 @@ const DEFAULT_NOT_FOUND: UnknownPage = {
url: "",
name: "_404",
handler: (req) => router.defaultOtherHandler(req),
runtimeJS: false,
csp: false,
};
@@ -511,7 +508,6 @@ const DEFAULT_ERROR: ErrorPage = {
url: "",
name: "_500",
handler: (req, ctx) => router.defaultErrorHandler(req, ctx.error),
runtimeJS: false,
csp: false,
};
-2
View File
@@ -85,7 +85,6 @@ export interface UnknownPage {
name: string;
component?: ComponentType<UnknownPageProps>;
handler: UnknownHandler;
runtimeJS: boolean;
csp: boolean;
}
@@ -95,7 +94,6 @@ export interface ErrorPage {
name: string;
component?: ComponentType<ErrorPageProps>;
handler: ErrorHandler;
runtimeJS: boolean;
csp: boolean;
}