mirror of
https://github.com/whekin/household-bot.git
synced 2026-03-31 22:44:03 +00:00
refactor(config): remove single-household deploy legacy
This commit is contained in:
@@ -19,16 +19,9 @@ const server = {
|
||||
LOG_LEVEL: z.enum(['debug', 'info', 'warn', 'error']).default('info'),
|
||||
PORT: z.coerce.number().int().min(1).max(65535).default(3000),
|
||||
DATABASE_URL: z.string().url(),
|
||||
HOUSEHOLD_ID: z.string().uuid().optional(),
|
||||
SUPABASE_URL: z.string().url().optional(),
|
||||
SUPABASE_PUBLISHABLE_KEY: z.string().min(1).optional(),
|
||||
SUPABASE_SERVICE_ROLE_KEY: z.string().min(1).optional(),
|
||||
TELEGRAM_BOT_TOKEN: z.string().min(1),
|
||||
TELEGRAM_WEBHOOK_SECRET: z.string().min(1),
|
||||
TELEGRAM_WEBHOOK_PATH: z.string().min(1).default('/webhook/telegram'),
|
||||
TELEGRAM_HOUSEHOLD_CHAT_ID: z.string().min(1).optional(),
|
||||
TELEGRAM_PURCHASE_TOPIC_ID: z.coerce.number().int().positive().optional(),
|
||||
TELEGRAM_FEEDBACK_TOPIC_ID: z.coerce.number().int().positive().optional(),
|
||||
MINI_APP_ALLOWED_ORIGINS: z
|
||||
.string()
|
||||
.optional()
|
||||
@@ -39,10 +32,6 @@ const server = {
|
||||
.transform((value) => parseOptionalCsv(value)),
|
||||
OPENAI_API_KEY: z.string().min(1).optional(),
|
||||
PARSER_MODEL: z.string().min(1).default('gpt-4.1-mini'),
|
||||
SENTRY_DSN: z.string().url().optional(),
|
||||
GCP_PROJECT_ID: z.string().min(1).optional(),
|
||||
GCP_REGION: z.string().min(1).default('europe-west1'),
|
||||
CLOUD_RUN_SERVICE_BOT: z.string().min(1).default('household-bot'),
|
||||
SCHEDULER_SHARED_SECRET: z.string().min(1).optional()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user