Skip to content

Commit c14e497

Browse files
committed
fix(connectors): move onedrive tagDefinitions into meta; drop server-only guard
- onedrive's tagDefinitions lived in the runtime file, so the client meta registry returned undefined for it and the add-connector tag opt-out section stopped rendering for onedrive. Move it into meta.ts like the other connectors so client and server see identical metadata (verified across all 50). - Remove the 'server-only' import from input-validation.server.ts: the meta/route split already keeps it out of the client bundle, and blocks/tools registries don't use the guard either.
1 parent d842395 commit c14e497

3 files changed

Lines changed: 7 additions & 9 deletions

File tree

apps/sim/connectors/onedrive/meta.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,11 @@ export const onedriveConnectorMeta: ConnectorMeta = {
2626
placeholder: 'e.g. 500 (default: unlimited)',
2727
},
2828
],
29+
30+
tagDefinitions: [
31+
{ id: 'path', displayName: 'Path', fieldType: 'text' },
32+
{ id: 'lastModified', displayName: 'Last Modified', fieldType: 'date' },
33+
{ id: 'fileSize', displayName: 'File Size', fieldType: 'number' },
34+
{ id: 'createdBy', displayName: 'Created By', fieldType: 'text' },
35+
],
2936
}

apps/sim/connectors/onedrive/onedrive.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -354,13 +354,6 @@ export const onedriveConnector: ConnectorConfig = {
354354
}
355355
},
356356

357-
tagDefinitions: [
358-
{ id: 'path', displayName: 'Path', fieldType: 'text' },
359-
{ id: 'lastModified', displayName: 'Last Modified', fieldType: 'date' },
360-
{ id: 'fileSize', displayName: 'File Size', fieldType: 'number' },
361-
{ id: 'createdBy', displayName: 'Created By', fieldType: 'text' },
362-
],
363-
364357
mapTags: (metadata: Record<string, unknown>): Record<string, unknown> => {
365358
const result: Record<string, unknown> = {}
366359

apps/sim/lib/core/security/input-validation.server.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import 'server-only'
2-
31
import dns from 'dns/promises'
42
import http from 'http'
53
import https from 'https'

0 commit comments

Comments
 (0)