mirror of
https://github.com/tlsnotary/tlsn-extension.git
synced 2026-01-08 22:58:04 -05:00
fix: demo UI should verifier the correct verifier server address (#214)
This commit is contained in:
@@ -63,10 +63,27 @@ process_plugin() {
|
|||||||
"$input_file" > "$output_file"
|
"$input_file" > "$output_file"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Copy static files
|
# Function to process index.html
|
||||||
|
process_index_html() {
|
||||||
|
local input_file="$1"
|
||||||
|
local output_file="generated/$(basename "$input_file")"
|
||||||
|
|
||||||
|
echo "Processing: $input_file -> $output_file"
|
||||||
|
|
||||||
|
# Replace hardcoded health check URL with configured verifier URL
|
||||||
|
sed -E \
|
||||||
|
-e "s|http://localhost:7047/health|${VERIFIER_URL}/health|g" \
|
||||||
|
"$input_file" > "$output_file"
|
||||||
|
}
|
||||||
|
|
||||||
|
# Process index.html
|
||||||
echo ""
|
echo ""
|
||||||
echo "Copying static files..."
|
echo "Processing index.html..."
|
||||||
cp index.html generated/
|
process_index_html "index.html"
|
||||||
|
|
||||||
|
# Copy other static files
|
||||||
|
echo ""
|
||||||
|
echo "Copying other static files..."
|
||||||
cp favicon.ico generated/ 2>/dev/null || true
|
cp favicon.ico generated/ 2>/dev/null || true
|
||||||
|
|
||||||
# Process plugin files
|
# Process plugin files
|
||||||
|
|||||||
Reference in New Issue
Block a user