Skip to content

Commit f12f1b6

Browse files
committed
feat: add DriverPlugin and InMemoryDriver to the console configuration
1 parent 6a60412 commit f12f1b6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

apps/console/objectstack.config.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,15 @@ import * as MSWPluginPkg from '@objectstack/plugin-msw';
1414
import * as ObjectQLPluginPkg from '@objectstack/objectql';
1515
// @ts-ignore
1616
import * as HonoServerPluginPkg from '@objectstack/plugin-hono-server';
17+
// @ts-ignore
18+
import * as DriverMemoryPkg from '@objectstack/driver-memory';
19+
// @ts-ignore
20+
import * as RuntimePkg from '@objectstack/runtime';
1721

1822
const MSWPlugin = MSWPluginPkg.MSWPlugin || (MSWPluginPkg as any).default?.MSWPlugin || (MSWPluginPkg as any).default;
1923
const ObjectQLPlugin = ObjectQLPluginPkg.ObjectQLPlugin || (ObjectQLPluginPkg as any).default?.ObjectQLPlugin || (ObjectQLPluginPkg as any).default;
24+
const InMemoryDriver = DriverMemoryPkg.InMemoryDriver || (DriverMemoryPkg as any).default?.InMemoryDriver || (DriverMemoryPkg as any).default;
25+
const DriverPlugin = RuntimePkg.DriverPlugin || (RuntimePkg as any).default?.DriverPlugin || (RuntimePkg as any).default;
2026
// const HonoServerPlugin = HonoServerPluginPkg.HonoServerPlugin || (HonoServerPluginPkg as any).default?.HonoServerPlugin || (HonoServerPluginPkg as any).default;
2127

2228
import ConsolePluginConfig from './plugin.js';
@@ -100,6 +106,7 @@ const FixedConsolePlugin = {
100106

101107
const plugins: any[] = [
102108
new ObjectQLPlugin(),
109+
new DriverPlugin(new InMemoryDriver(), 'memory'),
103110
// new MSWPlugin(), // Disabled in production mode
104111
// HonoServerPlugin is auto-detected
105112
FixedConsolePlugin

0 commit comments

Comments
 (0)