From 6ef6834acbb860743d6c9d88949dfc278eb34d29 Mon Sep 17 00:00:00 2001 From: Thomas Parisot Date: Mon, 21 Oct 2024 16:46:19 +0200 Subject: [PATCH] =?UTF-8?q?fix(config):=20=C3=A9ni=C3=A8me=20correction?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- export/src/config.js | 4 ++-- graphql/config.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/export/src/config.js b/export/src/config.js index 05217b8d9..d8f87f3fc 100644 --- a/export/src/config.js +++ b/export/src/config.js @@ -21,7 +21,7 @@ module.exports = convict({ default: 'http://localhost:3030/graphql' }, passthroughToken: { - format: 'string', + format: String, sensitive: true, env: 'SE_GRAPHQL_TOKEN', default: null @@ -30,7 +30,7 @@ module.exports = convict({ export: { // legacy option canonicalBaseUrl: { - format: 'url', + format: String, env: 'EXPORT_CANONICAL_BASE_URL', default: 'http://127.0.0.1:3060' }, diff --git a/graphql/config.js b/graphql/config.js index 18bae9f19..c6a39b6b3 100644 --- a/graphql/config.js +++ b/graphql/config.js @@ -11,7 +11,7 @@ convict.addFormat(require('convict-format-with-validator').url) module.exports = convict({ export: { baseUrl: { - format: 'url', + format: String, env: 'EXPORT_CANONICAL_BASE_URL', default: 'http://127.0.0.1:3060' },