#!/bin/sh set -eu escape_js() { printf '%s' "${1:-}" | sed 's/\\/\\\\/g; s/"/\\"/g' } cat > /srv/__foundry_runtime_config.js <