mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-18 17:12:53 +03:00
11 lines
282 B
Bash
11 lines
282 B
Bash
|
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"
|