fix: Remove redirect loop in GitHub Pages deployment

- Remove the redirect HTML that was overwriting the demo index.html
- Now the actual demo HTML with WASM will be served directly
- This fixes the infinite redirect loop issue
This commit is contained in:
Peter Hanssens
2025-09-23 21:49:45 +10:00
parent 9670c14bce
commit 12fb16caa0

View File

@@ -136,22 +136,6 @@ jobs:
cp examples/comprehensive-demo/index.html gh-pages-demo/
cp -r examples/comprehensive-demo/pkg gh-pages-demo/
# Create a simple index.html redirect to the demo
cat > gh-pages-demo/index.html << 'EOF'
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Leptos ShadCN UI - Comprehensive Demo</title>
<meta http-equiv="refresh" content="0; url=./index.html">
</head>
<body>
<p>Redirecting to demo...</p>
</body>
</html>
EOF
# Create a README for the demo
cat > gh-pages-demo/README.md << 'EOF'
# Leptos ShadCN UI - Comprehensive Demo