Remove check for .env in build script (#144)

This commit is contained in:
Nabarun Gogoi 2024-02-29 12:51:32 +05:30 committed by GitHub
parent 6a108c1a1b
commit 94a9bf88a9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -9,14 +9,6 @@ if [[ -d "$DEST_DIR" ]]; then
exit 1
fi
if [[ -f "$PKG_DIR/.env" ]]; then
echo "Using existing .env file"
else
mv "$PKG_DIR/.env.example" "$PKG_DIR/.env"
echo "Created .env file. Please populate with the correct values."
exit 1
fi
cat > $PKG_DIR/.env <<EOF
REACT_APP_SERVER_URL = 'LACONIC_HOSTED_CONFIG_app_server_url'
REACT_APP_GITHUB_CLIENT_ID = 'LACONIC_HOSTED_CONFIG_app_github_clientid'