Skip to content

The open alternative to Salesforce, designed for AI.

Fix inject runtime env (#9421)

Weikoedf0a1818c8b
diff --git a/packages/twenty-front/package.json b/packages/twenty-front/package.json
index 2e8fedd079b..831e9084b8d 100644
--- a/packages/twenty-front/package.json
+++ b/packages/twenty-front/package.json
@@ -4,8 +4,8 @@
"private": true,
"type": "module",
"scripts": {
- "build": "VITE_DISABLE_TYPESCRIPT_CHECKER=true VITE_DISABLE_ESLINT_CHECKER=true NODE_OPTIONS=--max-old-space-size=4000 npx vite build && sh ./scripts/inject-runtime-env.sh",
- "build:sourcemaps": "VITE_BUILD_SOURCEMAP=true VITE_DISABLE_TYPESCRIPT_CHECKER=true VITE_DISABLE_ESLINT_CHECKER=true NODE_OPTIONS=--max-old-space-size=6000 npx vite build && sh ./scripts/inject-runtime-env.sh",
+ "build": "VITE_DISABLE_TYPESCRIPT_CHECKER=true VITE_DISABLE_ESLINT_CHECKER=true NODE_OPTIONS=--max-old-space-size=4000 npx vite build && ./scripts/inject-runtime-env.sh",
+ "build:sourcemaps": "VITE_BUILD_SOURCEMAP=true VITE_DISABLE_TYPESCRIPT_CHECKER=true VITE_DISABLE_ESLINT_CHECKER=true NODE_OPTIONS=--max-old-space-size=6000 npx vite build && ./scripts/inject-runtime-env.sh",
"start:prod": "NODE_ENV=production npx vite --host",
"tsup": "npx tsup"
},
diff --git a/packages/twenty-front/scripts/inject-runtime-env.sh b/packages/twenty-front/scripts/inject-runtime-env.sh
index 3c8d0521d0a..40a04597dbc 100755
--- a/packages/twenty-front/scripts/inject-runtime-env.sh
+++ b/packages/twenty-front/scripts/inject-runtime-env.sh
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
echo "Injecting runtime environment variables into index.html..."