mirror of
https://github.com/hanzoai/sign.git
synced 2026-10-21 01:21:51 +00:00
The product is branded Hanzo eSign (esign.hanzo.ai, repo hanzoai/esign). Rename all workspace packages @hanzo/sign-* → @hanzo/esign-* (1052 files) and align docker/Dockerfile turbo --scope/--filter to the actual remix package name @hanzo/esign (was a pre-existing mismatch with -remix that broke the build). Protected deps (@hanzo/insights, @hanzo/logo) untouched.
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 API_V2_BETA_URL = '/api/v2-beta';
|
|
export const API_V2_URL = '/api/v2';
|
|
|
|
export const SUPPORT_EMAIL = env('NEXT_PUBLIC_SUPPORT_EMAIL') ?? '[email protected]';
|
|
|
|
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');
|