Skip to content

Commit 9dee0fc

Browse files
Copilothotlong
andcommitted
Fix build errors: remove studio references from tsconfig and express-api starter
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent aaaf0fc commit 9dee0fc

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

packages/starters/express-api/src/index.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import express from 'express';
22
import { ObjectQL } from '@objectql/core';
33
import { SqlDriver } from '@objectql/driver-sql';
44
import { ObjectLoader } from '@objectql/platform-node';
5-
import { createNodeHandler, createMetadataHandler, createStudioHandler, createRESTHandler } from '@objectql/server';
5+
import { createNodeHandler, createMetadataHandler, createRESTHandler } from '@objectql/server';
66
import * as path from 'path';
77

88
async function main() {
@@ -29,7 +29,6 @@ app.init().then(async () => {
2929
const objectQLHandler = createNodeHandler(app);
3030
const restHandler = createRESTHandler(app);
3131
const metadataHandler = createMetadataHandler(app);
32-
const studioHandler = createStudioHandler();
3332

3433
// 4. Setup Express
3534
const server = express();
@@ -51,7 +50,6 @@ app.init().then(async () => {
5150
server.all('/api/objectql*', objectQLHandler);
5251
server.all('/api/data/*', restHandler);
5352
server.all('/api/metadata*', metadataHandler);
54-
server.get('/studio*', studioHandler);
5553

5654
// Create some sample data
5755
const ctx = app.createContext({ isSystem: true });
@@ -66,7 +64,6 @@ app.init().then(async () => {
6664

6765
server.listen(port, () => {
6866
console.log(`\n🚀 ObjectQL Server running on http://localhost:${port}`);
69-
console.log(`\n📊 Console UI: http://localhost:${port}/console`);
7067
console.log(`\n🔌 APIs:`);
7168
console.log(` - JSON-RPC: http://localhost:${port}/api/objectql`);
7269
console.log(` - REST: http://localhost:${port}/api/data`);

tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
{ "path": "./packages/foundation/platform-node" },
1010
{ "path": "./packages/runtime/server" },
1111
{ "path": "./packages/tools/cli" },
12-
{ "path": "./packages/tools/studio" },
1312
{ "path": "./packages/starters/express-api" },
1413
{ "path": "./packages/starters/basic" },
1514
{ "path": "./packages/starters/enterprise" },

0 commit comments

Comments
 (0)