Skip to content

Commit 249142a

Browse files
authored
Merge pull request #666 from netzbegruenung/fix/mobile-hermes-import-meta
fix(chat): guard sharepic mentionable without import.meta
2 parents 16418db + 26a649e commit 249142a

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

apps/mobile/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
"lint": "eslint .",
2323
"lint:fix": "eslint . --fix",
2424
"build:android": "EAS_NO_VCS=1 eas build -p android --profile production",
25-
"build:android:preview": "EAS_NO_VCS=1 eas build -p android --profile preview"
25+
"build:android:preview": "EAS_NO_VCS=1 eas build -p android --profile preview",
26+
"eas-build-post-install": "pnpm -w --filter @gruenerator/canvas-editor build:css"
2627
},
2728
"dependencies": {
2829
"@assistant-ui/react-native": "^0.1.11",

packages/chat/src/lib/mentionables.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,8 +336,7 @@ export const toolMentionables: Mentionable[] = [
336336
backgroundColor: '#059669',
337337
mention: 'stadtbegruenen',
338338
},
339-
// Dev-only: sharepic creation via canvas editor (gated on Vite dev mode)
340-
...((import.meta as unknown as { env?: { DEV?: boolean } }).env?.DEV
339+
...(typeof document !== 'undefined' && process.env.NODE_ENV !== 'production'
341340
? [
342341
{
343342
type: 'tool' as const,

0 commit comments

Comments
 (0)