Migrate to a monorepo structure (#2909)
This commit is contained in:
11
packages/twenty-front/scripts/inject-runtime-env.sh
Executable file
11
packages/twenty-front/scripts/inject-runtime-env.sh
Executable file
@ -0,0 +1,11 @@
|
||||
echo "Generating env-config.js file from runtime environment variables..."
|
||||
|
||||
BASE_FILENAME="build/env-config.js"
|
||||
mkdir -p build
|
||||
rm -rf "./$BASE_FILENAME"
|
||||
|
||||
{
|
||||
echo "window._env_ = {"
|
||||
echo " REACT_APP_SERVER_BASE_URL: \"$REACT_APP_SERVER_BASE_URL\","
|
||||
echo "}"
|
||||
} > "./$BASE_FILENAME"
|
||||
Reference in New Issue
Block a user