refactor(core): Make new configs consistent (no-changelog) (#10393)
This commit is contained in:
12
packages/@n8n/config/src/configs/templates.config.ts
Normal file
12
packages/@n8n/config/src/configs/templates.config.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { Config, Env } from '../decorators';
|
||||
|
||||
@Config
|
||||
export class TemplatesConfig {
|
||||
/** Whether to load workflow templates. */
|
||||
@Env('N8N_TEMPLATES_ENABLED')
|
||||
enabled = true;
|
||||
|
||||
/** Host to retrieve workflow templates from endpoints. */
|
||||
@Env('N8N_TEMPLATES_HOST')
|
||||
host = 'https://api.n8n.io/api/';
|
||||
}
|
||||
Reference in New Issue
Block a user