#!/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;"