From 15db898cfde17d9b63193f3833cd43b57b05acf8 Mon Sep 17 00:00:00 2001 From: einhornimmond Date: Sat, 18 Jan 2025 19:45:18 +0100 Subject: [PATCH] check all and set to null if not found --- admin/vite.config.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/admin/vite.config.js b/admin/vite.config.js index a3dd28de8..825690c29 100644 --- a/admin/vite.config.js +++ b/admin/vite.config.js @@ -48,16 +48,16 @@ export default defineConfig({ }), EnvironmentPlugin({ BUILD_COMMIT: null, - PORT: CONFIG.ADMIN_MODULE_PORT, // null, - COMMUNITY_HOST: CONFIG.ADMIN_MODULE_HOST, // null, - COMMUNITY_URL: CONFIG.COMMUNITY_URL, - URL_PROTOCOL: CONFIG.ADMIN_MODULE_PROTOCOL, // null, + PORT: CONFIG.ADMIN_MODULE_PORT ?? null, // null, + COMMUNITY_HOST: CONFIG.ADMIN_MODULE_HOST ?? null, // null, + COMMUNITY_URL: CONFIG.COMMUNITY_URL ?? null, + URL_PROTOCOL: CONFIG.ADMIN_MODULE_PROTOCOL ?? null, // null, WALLET_AUTH_URL: CONFIG.WALLET_AUTH_URL ?? null, - GRAPHQL_URL: CONFIG.GRAPHQL_URI, // null, + GRAPHQL_URL: CONFIG.GRAPHQL_URI ?? null, // null, GRAPHQL_PATH: process.env.GRAPHQL_PATH ?? '/graphql', // null, WALLET_AUTH_PATH: CONFIG.WALLET_AUTH_PATH ?? null, - WALLET_LOGIN_PATH: CONFIG.WALLET_LOGIN_URL, // null, - DEBUG_DISABLE_AUTH: CONFIG.DEBUG_DISABLE_AUTH, // null, + WALLET_LOGIN_PATH: CONFIG.WALLET_LOGIN_URL ?? null, // null, + DEBUG_DISABLE_AUTH: CONFIG.DEBUG_DISABLE_AUTH ?? null, // null, // CONFIG_VERSION: CONFIG.CONFIG_VERSION, // null, }), commonjs(),