Files
Automata/packages/@n8n/config/src/configs/templates.config.ts
कारतोफ्फेलस्क्रिप्ट™ 2043daa257 fix(core): Use explicit types in configs to ensure valid decorator metadata (#10433)
2024-08-15 13:58:20 +02:00

13 lines
320 B
TypeScript

import { Config, Env } from '../decorators';
@Config
export class TemplatesConfig {
/** Whether to load workflow templates. */
@Env('N8N_TEMPLATES_ENABLED')
enabled: boolean = true;
/** Host to retrieve workflow templates from endpoints. */
@Env('N8N_TEMPLATES_HOST')
host: string = 'https://api.n8n.io/api/';
}