From a32b9f06636cf76c9255622392c776bc110c3709 Mon Sep 17 00:00:00 2001
From: Ashley Anderson
Date: Thu, 26 Feb 2026 11:28:33 -0500
Subject: [PATCH 1/2] Rename conda-map route to conda_map for more consistency
with other routes
---
scripts/prepare_gh_pages.py | 6 +++---
vercel.json | 8 ++++----
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/scripts/prepare_gh_pages.py b/scripts/prepare_gh_pages.py
index 8ae52e951c..74301023d0 100644
--- a/scripts/prepare_gh_pages.py
+++ b/scripts/prepare_gh_pages.py
@@ -4,7 +4,7 @@
This script creates a gh-pages directory with the same structure as public/
but formatted for static file serving:
- No .json file extensions (to match API routes)
-- conda.json -> conda-map (to avoid /conda conflicts with /conda/{plugin_name})
+- conda.json -> conda_map (to avoid /conda conflicts with /conda/{plugin_name})
- Everything nested under an 'api' directory
- Simple index.html at the root
"""
@@ -46,7 +46,7 @@ def prepare_gh_pages():
dest_paths.append(gh_pages_dir / "classifiers.json")
elif source_file == public_dir / "conda.json":
dest_paths.append(gh_pages_dir / "conda.json")
- dest_paths.append(api_dir / "conda-map")
+ dest_paths.append(api_dir / "conda_map")
elif source_file == public_dir / "errors.json":
dest_paths.append(gh_pages_dir / "errors.json")
elif source_file == public_dir / "extended_summary.json":
@@ -121,7 +121,7 @@ def create_index_html(gh_pages_dir: Path, api_dir: Path):
endpoint for an individual plugin.
- Conda index: api/conda-map
+ Conda index: api/conda_map
(see conda info for each plugin at api/conda/pypi_name)
Fetch errors: errors.json
diff --git a/vercel.json b/vercel.json
index e7ff61dfc9..3367cea3c8 100644
--- a/vercel.json
+++ b/vercel.json
@@ -12,7 +12,7 @@
},
{
"source": "/api/conda",
- "destination": "/api/conda-map"
+ "destination": "/api/conda_map"
}
],
"headers": [
@@ -25,13 +25,13 @@
},
{
"key": "Link",
- "value": "; rel=\"alternate\""
+ "value": "; rel=\"alternate\""
},
{
"key": "X-Deprecated-Message",
- "value": "This endpoint is deprecated. Use /api/conda-map instead to avoid conflicts with /api/conda/:plugin routes."
+ "value": "This endpoint is deprecated. Use /api/conda_map instead to avoid conflicts with /api/conda/:plugin routes."
}
]
}
]
-}
\ No newline at end of file
+}
From 9d9f45e7f896b9a1a63a8c0c4e87391153cab0c8 Mon Sep 17 00:00:00 2001
From: Ashley Anderson
Date: Fri, 27 Feb 2026 17:15:05 -0500
Subject: [PATCH 2/2] Rename conda-map to conda_map to match other naming
---
pages/api/{conda-map.js => conda_map.js} | 0
1 file changed, 0 insertions(+), 0 deletions(-)
rename pages/api/{conda-map.js => conda_map.js} (100%)
diff --git a/pages/api/conda-map.js b/pages/api/conda_map.js
similarity index 100%
rename from pages/api/conda-map.js
rename to pages/api/conda_map.js