This commit is contained in:
2026-10-23 19:23:03 +02:00
parent 8c8240de63
commit 19428550ca
90 changed files with 6912 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
#!/bin/sh
# Writes the runtime configuration consumed by the website (see src/config/runtimeConfig.ts).
set -eu
# Escape backslashes and double quotes for the JS string literal.
server_url=$(printf '%s' "${SERVER_URL:-}" | sed 's/\\/\\\\/g; s/"/\\"/g')
cat > /usr/share/nginx/html/config.js <<CONFIG
window.__ACTIONBLOCKS_CONFIG__ = { serverUrl: "${server_url}" };
CONFIG