mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-21 10:51:50 +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"
|