Skip to content

Commit b0e743f

Browse files
fix: use getServiceAsync for objectql service and remove ignored memory setting
Agent-Logs-Url: https://github.com/objectstack-ai/framework/sessions/3e1b55e8-5330-4645-b7d8-61e8e032fa00 Co-authored-by: xuyushun441-sys <255036401+xuyushun441-sys@users.noreply.github.com>
1 parent 8a021fa commit b0e743f

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

apps/server/server/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ async function ensureKernel(): Promise<ObjectKernel> {
8484
await kernel.use(new DriverPlugin(tursoDriver, 'turso'));
8585

8686
// Configure datasource mapping: sys namespace → Turso, everything else → Memory
87-
const ql = kernel.getService('objectql');
87+
const ql = await kernel.getServiceAsync<any>('objectql');
8888
if (ql && typeof ql.setDatasourceMapping === 'function') {
8989
ql.setDatasourceMapping([
9090
// System objects (sys namespace) use Turso for persistent storage
@@ -266,6 +266,5 @@ export default getRequestListener(async (request, env) => {
266266
* Vercel per-function configuration.
267267
*/
268268
export const config = {
269-
memory: 1024,
270269
maxDuration: 60,
271270
};

apps/server/vercel.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
},
1212
"functions": {
1313
"api/**/*.js": {
14-
"memory": 1024,
1514
"maxDuration": 60,
1615
"includeFiles": "api/node_modules/**"
1716
}

0 commit comments

Comments
 (0)