Contenerisation
This commit is contained in:
6
30-api-config.sh
Normal file
6
30-api-config.sh
Normal 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" {} \;
|
||||
Reference in New Issue
Block a user