Skip to content

Commit 97525f4

Browse files
committed
fix: enable mock server and add debug logging for find method
1 parent bc20a47 commit 97525f4

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

apps/console/.env.production

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VITE_USE_MOCK_SERVER=false
1+
VITE_USE_MOCK_SERVER=true

apps/console/src/dataSource.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ export class ObjectStackDataSource implements DataSource {
5050

5151
async find(objectName: string, options?: any): Promise<QueryResult<any>> {
5252
const result: any = await this.client.data.find(objectName, options || {});
53+
console.log('DEBUG: find result', result);
5354

5455
// Handle array response
5556
if (Array.isArray(result)) {

apps/console/src/mocks/browser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export async function startMockServer() {
5252
// MSW Plugin (intercepts network requests)
5353
// Disable auto-start to manually control worker registration with correct path
5454
const mswPlugin = new MSWPlugin({
55-
enableBrowser: false,
55+
enableBrowser: true,
5656
baseUrl: '/api/v1',
5757
logRequests: true
5858
});

0 commit comments

Comments
 (0)