Skip to content

Commit 67f620f

Browse files
committed
fix: Add index.html redirect to latest.json
This fixes the 404 when clicking the GitHub Pages URL in the workflow summary. The root URL now redirects to latest.json.
1 parent d944ca7 commit 67f620f

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,21 @@ jobs:
9494
echo "Copied historical versions from versions/ directory"
9595
fi
9696
97+
# Create index.html that redirects to latest.json
98+
cat > dist/index.html << 'EOF'
99+
<!DOCTYPE html>
100+
<html lang="en">
101+
<head>
102+
<meta charset="utf-8">
103+
<title>Request Network Token List</title>
104+
<meta http-equiv="refresh" content="0; url=latest.json">
105+
</head>
106+
<body>
107+
<p>Redirecting to <a href="latest.json">latest.json</a>...</p>
108+
</body>
109+
</html>
110+
EOF
111+
97112
echo "Created versioned files: v${VERSION}.json, v${MAJOR}.${MINOR}.json, v${MAJOR}.json, latest.json"
98113
99114
- name: Deploy to GitHub Pages

tokens/token-list.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Request Network Token List",
3-
"timestamp": "2025-12-02T15:43:26.000Z",
3+
"timestamp": "Set automatically during deployment",
44
"version": {
55
"major": 1,
66
"minor": 3,

0 commit comments

Comments
 (0)