mirror of
https://github.com/hanzoai/sign.git
synced 2026-10-21 01:21:51 +00:00
Report the signing certificate missing when the signer would miss it
The signer takes an unset NEXT_PRIVATE_SIGNING_TRANSPORT as local and reads the certificate; the health check took it as something else and answered ok. Production had no certificate and said so nowhere.
This commit is contained in:
@@ -3,7 +3,9 @@ import * as fs from 'node:fs';
|
||||
import { env } from '@hanzo/esign-lib/utils/env';
|
||||
|
||||
export const getCertificateStatus = () => {
|
||||
if (env('NEXT_PRIVATE_SIGNING_TRANSPORT') !== 'local') {
|
||||
// The same default the signer takes (packages/signing): an unset transport is
|
||||
// local, so it needs the certificate as much as an explicit one does.
|
||||
if ((env('NEXT_PRIVATE_SIGNING_TRANSPORT') || 'local') !== 'local') {
|
||||
return { isAvailable: true };
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user