feat: enhance OIDC configuration for Azure login and improve error handling in API responses
All checks were successful
On Push to Main / test (push) Successful in 56s
On Push to Main / publish (push) Successful in 1m24s
On Push to Main / deploy-dev (push) Successful in 2m58s

This commit is contained in:
RaymondVerhoef
2026-07-11 10:19:54 +02:00
parent d5191073f0
commit 89d3395a62
2 changed files with 21 additions and 6 deletions

View File

@@ -46,6 +46,13 @@
}
handle_errors {
# Don't mask API errors with the SPA shell — return a proper
# JSON error so the frontend can display a meaningful message.
@api path /api/*
respond @api `{"code":{err.status_code},"message":"Backend unavailable"}` {err.status_code} {
Content-Type application/json
}
rewrite * /index.html
file_server
}