Skip to content

Commit 180248e

Browse files
JoeMattclaude
andcommitted
fix: rename status.json → site-status.json to fix /status/ 404
public/status.json conflicted with the /status/ page route: Next.js static export with trailingSlash:true needs out/status/ as a directory, but out/status.json (from public/) blocked that, causing the page to be output as out/status.html instead. GitHub Pages then served /status.html correctly but /status/ (the navigation URL) returned 404. Renaming to site-status.json removes the conflict so Next.js can output out/status/index.html properly. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 8288dde commit 180248e

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.github/workflows/site-audit.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
branches: [main]
66
paths-ignore:
7-
- 'public/status.json' # Prevent loop when this workflow commits audit results
7+
- 'public/site-status.json' # Prevent loop when this workflow commits audit results
88
pull_request:
99
schedule:
1010
- cron: '0 7 * * 1' # Every Monday at 7am UTC
@@ -312,7 +312,7 @@ jobs:
312312
steps:
313313
- uses: actions/checkout@v4
314314

315-
- name: Generate public/status.json
315+
- name: Generate public/site-status.json
316316
env:
317317
PERF: ${{ needs.lighthouse.outputs.performance }}
318318
A11Y: ${{ needs.lighthouse.outputs.accessibility }}
@@ -354,7 +354,7 @@ jobs:
354354
"grade": os.environ.get("SSL_GRADE", "N/A") or "N/A"
355355
},
356356
}
357-
with open("public/status.json", "w") as f:
357+
with open("public/site-status.json", "w") as f:
358358
json.dump(data, f, indent=2)
359359
print(json.dumps(data, indent=2))
360360
PYEOF
@@ -363,11 +363,11 @@ jobs:
363363
run: |
364364
git config user.name "github-actions[bot]"
365365
git config user.email "github-actions[bot]@users.noreply.github.com"
366-
cp public/status.json /tmp/status_generated.json
366+
cp public/site-status.json /tmp/status_generated.json
367367
git fetch origin main
368368
git reset --hard origin/main
369-
cp /tmp/status_generated.json public/status.json
370-
git add public/status.json
369+
cp /tmp/status_generated.json public/site-status.json
370+
git add public/site-status.json
371371
git diff --staged --quiet || git commit -m "chore: update site audit status"
372372
git push
373373

src/app/status/StatusDashboard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export default function StatusDashboard() {
5252
const [error, setError] = useState(false);
5353

5454
useEffect(() => {
55-
fetch('/status.json')
55+
fetch('/site-status.json')
5656
.then(r => r.json())
5757
.then(setData)
5858
.catch(() => setError(true));

0 commit comments

Comments
 (0)