Add post-video redirect to YouTube URL from env config.

After the intro finishes, users are redirected to POST_VIDEO_REDIRECT_URL loaded via generated config.js for dev, Docker, and Dokploy deployments.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-26 15:36:38 +02:00
parent d17987efed
commit 833e248518
10 changed files with 70 additions and 3 deletions
+16 -1
View File
@@ -10,8 +10,18 @@ if [[ ! -f .env ]]; then
echo "Utworzono .env z .env.example"
fi
generate_config() {
set -a
# shellcheck disable=SC1091
source .env
set +a
./generate-config.sh config.js
}
case "${1:-up}" in
up)
chmod +x generate-config.sh
generate_config
$COMPOSE up -d
echo ""
echo "Dev server: http://localhost:${FRONTEND_PORT:-8082}"
@@ -24,14 +34,19 @@ case "${1:-up}" in
$COMPOSE logs -f
;;
restart)
generate_config
$COMPOSE restart
;;
config)
generate_config
echo "Wygenerowano config.js (POST_VIDEO_REDIRECT_URL z .env)."
;;
reload-nginx)
docker exec slavic-pulse-com-frontend nginx -s reload
echo "Nginx przeładowany (po zmianie default.conf)."
;;
*)
echo "Użycie: $0 [up|down|logs|restart|reload-nginx]"
echo "Użycie: $0 [up|down|logs|restart|reload-nginx|config]"
exit 1
;;
esac