Initial Commit
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "Baking Environment Variables..."
|
||||
|
||||
if [ -z "${API_URI}" ]; then
|
||||
echo "API_URI is not set. Exiting..."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Find and replace baked values with real values for the API_URI
|
||||
find /app/packages/dashboard/public /app/packages/dashboard/.next -type f -name "*.js" |
|
||||
while read file; do
|
||||
sed -i "s|PLUNK_API_URI|${API_URI}|g" "$file"
|
||||
done
|
||||
|
||||
echo "Environment Variables Baked."
|
||||
Reference in New Issue
Block a user