diff --git a/README.md b/README.md index 60958c6..ac29fb6 100644 --- a/README.md +++ b/README.md @@ -30,12 +30,12 @@ go build ./cmd/acb-mapgen # Start web development server cd web && npm install && npm run dev -# Open http://localhost:3000/app.html +# Open http://localhost:3000/ ``` ### Viewing Replays -1. Open the web app at `http://localhost:3000/app.html` +1. Open the web app at `http://localhost:3000/` 2. Navigate to "Replay Viewer" in the menu 3. Load a replay JSON file or enter a URL diff --git a/cmd/acb-index-builder/deploy.go b/cmd/acb-index-builder/deploy.go index 6ddd6fc..2ea0835 100644 --- a/cmd/acb-index-builder/deploy.go +++ b/cmd/acb-index-builder/deploy.go @@ -107,16 +107,6 @@ func verifyMergedOutput(cfg *Config) error { slog.Warn("leaderboard.json not yet generated, deploying with partial data") } - // Ensure _redirects routes / → app.html so the main leaderboard app is the - // entry point. The replay viewer stays at /index.html for direct linking. - redirectsPath := filepath.Join(cfg.OutputDir, "_redirects") - if _, err := os.Stat(redirectsPath); err != nil { - redirectsContent := "/ /app.html 301\n" - if writeErr := os.WriteFile(redirectsPath, []byte(redirectsContent), 0644); writeErr != nil { - slog.Warn("Failed to write _redirects", "error", writeErr) - } - } - slog.Info("Merged output verified", "directory", cfg.OutputDir) return nil } diff --git a/web/index.html b/web/index.html index 595bfba..e34e038 100644 --- a/web/index.html +++ b/web/index.html @@ -3,498 +3,923 @@
-