Contenerisation

This commit is contained in:
ElPoyo
2025-09-29 15:53:29 +02:00
parent 45f76cc5c8
commit 5d0993bda3
17 changed files with 122 additions and 58 deletions

6
30-api-config.sh Normal file
View File

@@ -0,0 +1,6 @@
#!/bin/sh
API_URL=${VITE_TEXTS_API_URL:-http://localhost:3000/api}
echo "Configuration du frontend avec l'API URL: $API_URL"
# Remplace l'URL de l'API dans les fichiers JS
find /usr/share/nginx/html -name "*.js" -type f -exec sed -i "s|VITE_TEXTS_API_URL_PLACEHOLDER|$API_URL|g" {} \;