From 3fbac0de1e76ae1ac5cf8929a78d70e5772e9afe Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 23 Jul 2026 10:27:55 +0000 Subject: [PATCH] fix: preserve custom gh pages spa fallback --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index d958c7d..503f64a 100755 --- a/build.sh +++ b/build.sh @@ -54,7 +54,7 @@ def main(): root_404_file = dist_dir / "404.html" source_404_file = project_root / "public" / "404.html" - if not root_404_file.exists() and source_404_file.exists(): + if source_404_file.exists(): shutil.copyfile(source_404_file, root_404_file) if root_404_file.exists():