From 736ac4af7aeea5a75ee026dac11f7553e7c4b619 Mon Sep 17 00:00:00 2001 From: Nathan Huang Date: Sat, 6 Jun 2026 16:39:24 -0700 Subject: [PATCH] Fix SPA refresh 404 on GitHub Pages --- frontend/package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/package.json b/frontend/package.json index c4978c8..9f7246a 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -17,6 +17,7 @@ "scripts": { "start": "react-scripts start", "build": "react-scripts build", + "postbuild": "cp build/index.html build/404.html", "test": "react-scripts test", "eject": "react-scripts eject", "predeploy": "npm run build",