Skip to content

Commit b5d7669

Browse files
committed
Update runtime.ts
1 parent d2aa0a5 commit b5d7669

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

packages/runtime/src/runtime.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ObjectKernel, Plugin, IHttpServer } from '@objectstack/core';
1+
import { ObjectKernel, Plugin, IHttpServer, ObjectKernelConfig } from '@objectstack/core';
22
import { HttpServer } from './http-server.js';
33
import { createApiRegistryPlugin, ApiRegistryConfig } from './api-registry-plugin.js';
44

@@ -14,6 +14,11 @@ export interface RuntimeConfig {
1414
* API Registry Configuration
1515
*/
1616
api?: ApiRegistryConfig;
17+
18+
/**
19+
* Kernel Configuration
20+
*/
21+
kernel?: ObjectKernelConfig;
1722
}
1823

1924
/**
@@ -29,7 +34,7 @@ export class Runtime {
2934
readonly kernel: ObjectKernel;
3035

3136
constructor(config: RuntimeConfig = {}) {
32-
this.kernel = new ObjectKernel();
37+
this.kernel = new ObjectKernel(config.kernel);
3338

3439
// If external server provided, register it immediately
3540
if (config.server) {

0 commit comments

Comments
 (0)