mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
feat(site): add Mux health check action (#542)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
78de97ec23
commit
1d6cc2b8c0
@@ -22,6 +22,9 @@ function isGated(actionName: string | undefined) {
|
||||
// detect UNAUTHORIZED and show a login UI before uploading
|
||||
if (actionName === 'mux.createDirectUpload') return false;
|
||||
|
||||
// Health check uses server-side credentials, not user OAuth
|
||||
if (actionName === 'mux.health') return false;
|
||||
|
||||
// I don't love the magic string nature of this pattern but it's what is recommended in the docs
|
||||
return actionName.startsWith('mux');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user