From 4d5ed1eda53796380c15cc0a80135840d3f11b86 Mon Sep 17 00:00:00 2001 From: Patrick Date: Tue, 10 Sep 2024 13:08:12 +0200 Subject: [PATCH] chore(env): add env-var to distinguish between deployment-types (#850) The variable will be set to `production` or `staging` corresponding to the deployment-type --- frontend/.env-example | 1 + frontend/nuxt.config.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/frontend/.env-example b/frontend/.env-example index 563b8dc92..8e5b8de1b 100644 --- a/frontend/.env-example +++ b/frontend/.env-example @@ -11,4 +11,5 @@ NUXT_PUBLIC_V1_DOMAIN: "" NUXT_PUBLIC_LOG_FILE: "" NUXT_PUBLIC_CHAIN_ID_BY_DEFAULT: "" NUXT_PUBLIC_MAINTENANCE_TS: "1717700652" +NUXT_PUBLIC_DEPLOYMENT_TYPE: "development" PRIVATE_SSR_SECRET: "" diff --git a/frontend/nuxt.config.ts b/frontend/nuxt.config.ts index 8c932276c..81bb64d3a 100644 --- a/frontend/nuxt.config.ts +++ b/frontend/nuxt.config.ts @@ -78,6 +78,7 @@ export default defineNuxtConfig({ apiClient: process.env.PUBLIC_API_CLIENT, apiKey: process.env.PUBLIC_API_KEY, chainIdByDefault: process.env.PUBLIC_CHAIN_ID_BY_DEFAULT, + deploymentType: process.env.PUBLIC_DEPLOYMENT_TYPE, domain: process.env.PUBLIC_DOMAIN, gitVersion, legacyApiClient: process.env.PUBLIC_LEGACY_API_CLIENT,