编排相关API代码 - #9
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: dc65387202
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| } catch { | ||
| return undefined |
There was a problem hiding this comment.
Do not swallow published API database load errors
When DATABASE_URL is configured but the database is unavailable, migrated incorrectly, or the query otherwise fails, this catch makes loadApiJson() treat the published API as absent and fall back to bundled/filesystem JSON. For database-only APIs that becomes a misleading 404, and for UUIDs that also exist as assets it can serve stale bundled behavior instead of failing, which is especially risky after publishing an updated API. Only the expected “DB not configured/table not present” cases should fall back; connection/query errors should surface.
Useful? React with 👍 / 👎.
No description provided.