Skip to content

fix(caddy): add /tiles/* routes so frontend can reach baked clutter tiles#464

Merged
SimmerV merged 1 commit into
MeshAddicts:developfrom
SimmerV:bug-fix
May 14, 2026
Merged

fix(caddy): add /tiles/* routes so frontend can reach baked clutter tiles#464
SimmerV merged 1 commit into
MeshAddicts:developfrom
SimmerV:bug-fix

Conversation

@SimmerV

@SimmerV SimmerV commented May 14, 2026

Copy link
Copy Markdown
Collaborator

Summary

Adds two routes to both Caddyfiles, ordered so /tiles/* and /api/tiles/* match before the generic /api/* handler:

  • handle /tiles/* — direct fetches when VITE_API_BASE_URL is unset (frontend falls back to window.location.origin).
  • handle_path /api/tiles/* { rewrite * /tiles{uri} } — for deployments that set VITE_API_BASE_URL=/api. Tiles are mounted outside /v1 on the API, so the rewrite strips /api/tiles and re-prefixes /tiles instead of going through the generic /api/* → /v1/... rewrite some deployments use.

@SimmerV SimmerV self-assigned this May 14, 2026
@SimmerV SimmerV added this to meshinfo May 14, 2026
@SimmerV SimmerV added the bug Something isn't working label May 14, 2026
@github-project-automation github-project-automation Bot moved this to Backlog in meshinfo May 14, 2026
@SimmerV SimmerV merged commit b5cb649 into MeshAddicts:develop May 14, 2026
4 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in meshinfo May 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant