feat: add config option to disable runtime js (#36)
The config option can be toggled per page:
```js
export const config: PageConfig = { runtimeJS: false };
```
This commit is contained in:
+3
-1
@@ -1,9 +1,10 @@
|
||||
import { ComponentType } from "../runtime/deps.ts";
|
||||
import { router } from "./deps.ts";
|
||||
import { PageProps } from "../runtime/types.ts";
|
||||
import { PageConfig, PageProps } from "../runtime/types.ts";
|
||||
|
||||
export interface PageModule {
|
||||
default: ComponentType<PageProps>;
|
||||
config?: PageConfig;
|
||||
}
|
||||
|
||||
export interface Page {
|
||||
@@ -11,6 +12,7 @@ export interface Page {
|
||||
url: string;
|
||||
name: string;
|
||||
component: ComponentType<PageProps>;
|
||||
runtimeJS: boolean;
|
||||
}
|
||||
|
||||
export type ApiRouteModule = {
|
||||
|
||||
Reference in New Issue
Block a user