Skip to content

Commit eb6a9df

Browse files
fix(server): Use async service resolution for ObjectQL on Vercel
Agent-Logs-Url: https://github.com/objectstack-ai/framework/sessions/513c44ed-000f-41d7-8aed-49b74803191d Co-authored-by: xuyushun441-sys <255036401+xuyushun441-sys@users.noreply.github.com>
1 parent fb2be3b commit eb6a9df

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/server/server/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ async function ensureKernel(): Promise<ObjectKernel> {
8484

8585
// Configure datasource mapping
8686
// This must be done before loading apps, so ObjectQL can route objects correctly
87-
const ql = kernel.getService('ObjectQL');
87+
const ql = await kernel.getServiceAsync('ObjectQL');
8888
if (ql && typeof ql.setDatasourceMapping === 'function') {
8989
ql.setDatasourceMapping([
9090
// Example apps use in-memory driver for fast, ephemeral data

0 commit comments

Comments
 (0)