File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import { ObjectKernel } from '@objectstack/runtime';
1111import { createHonoApp } from '@objectstack/hono' ;
1212import { getRequestListener } from '@hono/node-server' ;
1313import type { Hono } from 'hono' ;
14- import config from '../objectstack.config' ;
14+ import stackConfig from '../objectstack.config' ;
1515
1616// ---------------------------------------------------------------------------
1717// Singleton state — persists across warm Vercel invocations
@@ -38,7 +38,11 @@ async function ensureKernel(): Promise<ObjectKernel> {
3838 const kernel = new ObjectKernel ( ) ;
3939
4040 // Register all plugins from shared config
41- for ( const plugin of config . plugins ?? [ ] ) {
41+ if ( ! stackConfig . plugins || stackConfig . plugins . length === 0 ) {
42+ throw new Error ( `[Vercel] No plugins found in stackConfig` ) ;
43+ }
44+
45+ for ( const plugin of stackConfig . plugins ) {
4246 await kernel . use ( plugin as any ) ;
4347 }
4448
You can’t perform that action at this time.
0 commit comments