mirror of
https://github.com/hanzoai/sign.git
synced 2026-10-21 01:21:51 +00:00
Emails, the signing page's title, the sealed PDF's reason, the sign-in refusal and the dialogs still said Hanzo Sign. The catalogs change with the strings, message for message, so every translation keeps its id.
47 lines
1.7 KiB
TypeScript
47 lines
1.7 KiB
TypeScript
import { env } from '@hanzo/esign-lib/utils/env';
|
|
|
|
export const APP_DOCUMENT_UPLOAD_SIZE_LIMIT =
|
|
Number(env('NEXT_PUBLIC_DOCUMENT_SIZE_UPLOAD_LIMIT')) || 50;
|
|
|
|
export const NEXT_PUBLIC_WEBAPP_URL = () =>
|
|
env('NEXT_PUBLIC_WEBAPP_URL') ?? 'http://localhost:3000';
|
|
|
|
export const NEXT_PUBLIC_SIGNING_CONTACT_INFO = () =>
|
|
env('NEXT_PUBLIC_SIGNING_CONTACT_INFO') ?? NEXT_PUBLIC_WEBAPP_URL();
|
|
|
|
export const NEXT_PRIVATE_USE_LEGACY_SIGNING_SUBFILTER = () =>
|
|
env('NEXT_PRIVATE_USE_LEGACY_SIGNING_SUBFILTER') === 'true';
|
|
|
|
export const NEXT_PRIVATE_INTERNAL_WEBAPP_URL = () =>
|
|
env('NEXT_PRIVATE_INTERNAL_WEBAPP_URL') ?? NEXT_PUBLIC_WEBAPP_URL();
|
|
|
|
/**
|
|
* Hanzo eSign is fully AGPL — no commercial billing surface exists.
|
|
* Every feature is available to every user; this constant is kept for
|
|
* call-site compatibility but always returns false.
|
|
*/
|
|
export const IS_BILLING_ENABLED = () => false;
|
|
|
|
export const SUPPORT_EMAIL = env('NEXT_PUBLIC_SUPPORT_EMAIL') ?? '[email protected]';
|
|
|
|
/** Where every "read the docs" link in the app points. */
|
|
export const DOCS_URL = 'https://docs.hanzo.ai';
|
|
|
|
export const USE_INTERNAL_URL_BROWSERLESS = () =>
|
|
env('NEXT_PUBLIC_USE_INTERNAL_URL_BROWSERLESS') === 'true';
|
|
|
|
export const IS_AI_FEATURES_CONFIGURED = () =>
|
|
!!env('GOOGLE_VERTEX_PROJECT_ID') && !!env('GOOGLE_VERTEX_API_KEY');
|
|
|
|
/**
|
|
* Temporary flag to toggle between Playwright-based and Konva-based PDF generation
|
|
* for audit logs during sealing.
|
|
*
|
|
* @deprecated This is a temporary flag and will be removed once Konva-based generation is stable.
|
|
*/
|
|
export const NEXT_PRIVATE_USE_PLAYWRIGHT_PDF = () =>
|
|
env('NEXT_PRIVATE_USE_PLAYWRIGHT_PDF') === 'true';
|
|
|
|
export const NEXT_PRIVATE_SIGNING_TIMESTAMP_AUTHORITY = () =>
|
|
env('NEXT_PRIVATE_SIGNING_TIMESTAMP_AUTHORITY');
|