feat(core): Update config defaults for for v1 (no-changelog) (#6196)

feat(core): Change config defaults when the release is V1
This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2023-05-08 11:46:20 +00:00
committed by GitHub
parent 14bcd4c2f7
commit b499d27f08
2 changed files with 5 additions and 2 deletions

View File

@@ -4,6 +4,7 @@ import path from 'path';
import convict from 'convict';
import { UserSettings } from 'n8n-core';
import { jsonParse } from 'n8n-workflow';
import { IS_V1_RELEASE } from '@/constants';
convict.addFormat({
name: 'nodes-list',
@@ -230,7 +231,7 @@ export const schema = {
process: {
doc: 'In what process workflows should be executed',
format: ['main', 'own'] as const,
default: 'own',
default: IS_V1_RELEASE ? 'main' : 'own',
env: 'EXECUTIONS_PROCESS',
},
@@ -943,7 +944,7 @@ export const schema = {
push: {
backend: {
format: ['sse', 'websocket'] as const,
default: 'sse',
default: IS_V1_RELEASE ? 'websocket' : 'sse',
env: 'N8N_PUSH_BACKEND',
doc: 'Backend to use for push notifications',
},