mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-23 20:13:21 +03:00
bf60227d67
Add support for a new SENTRY_RELEASE and SENTRY_ENVIRONMENT env. It is optional and allows to init sentry with a Release version and an env (used internally at Twenty). Docker image have been updated do intergrate the new env as an Argument
13 lines
293 B
Bash
Executable File
13 lines
293 B
Bash
Executable File
#!/bin/sh
|
|
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"
|