Fix: /zuechter auf Staging → Redirect zu banyaro.app/zuechter (Production)

This commit is contained in:
rene 2026-05-13 22:32:17 +02:00
parent 3a3002aff3
commit a3acf97938

View file

@ -524,7 +524,10 @@ async def info_page():
@app.get("/zuechter") @app.get("/zuechter")
async def zuechter_landing(): async def zuechter_landing(request: _Request):
from fastapi.responses import RedirectResponse as _RR
if os.getenv("STAGING") == "true":
return _RR("https://banyaro.app/zuechter", status_code=301)
return FileResponse(f"{STATIC_DIR}/zuechter.html", headers={"Cache-Control": "max-age=3600"}) return FileResponse(f"{STATIC_DIR}/zuechter.html", headers={"Cache-Control": "max-age=3600"})