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 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 +}