Spaces:
Sleeping
Sleeping
File size: 348 Bytes
e4c7604 | 1 2 3 4 5 6 7 8 9 10 11 | #!/bin/sh
# Replace the placeholder with the actual API key from environment variable if it exists
if [ -n "$GEMINI_API_KEY" ]; then
echo "Injecting GEMINI_API_KEY into JS files..."
find /usr/share/nginx/html -name "*.js" -exec sed -i "s/AIzaSyAyVva5wY2g6kmoG3bafrwf4dzM8xLrqDk/$GEMINI_API_KEY/g" {} +
fi
# Start Nginx
nginx -g "daemon off;"
|