From b4649bc96de169b772e0b12df14c1b11da71aef0 Mon Sep 17 00:00:00 2001 From: Alexander Brown Date: Fri, 30 Jan 2026 01:11:41 -0800 Subject: [PATCH] Set IS_NIGHTLY right when we build (#8482) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-8482-Set-IS_NIGHTLY-right-when-we-build-2f86d73d365081009fdbc2aee8f7545d) by [Unito](https://www.unito.io) --- .github/workflows/release-draft-create.yaml | 1 + vite.config.mts | 6 +----- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release-draft-create.yaml b/.github/workflows/release-draft-create.yaml index 1e32e450ba..74d6c98981 100644 --- a/.github/workflows/release-draft-create.yaml +++ b/.github/workflows/release-draft-create.yaml @@ -50,6 +50,7 @@ jobs: ALGOLIA_API_KEY: ${{ secrets.ALGOLIA_API_KEY }} ENABLE_MINIFY: 'true' USE_PROD_CONFIG: 'true' + IS_NIGHTLY: ${{ case(github.ref == 'refs/heads/main', 'true', 'false') }} run: | pnpm install --frozen-lockfile pnpm build diff --git a/vite.config.mts b/vite.config.mts index 9769ec300a..0732698cbb 100644 --- a/vite.config.mts +++ b/vite.config.mts @@ -53,11 +53,7 @@ const DISTRIBUTION: 'desktop' | 'localhost' | 'cloud' = // Nightly builds are from main branch; RC/stable builds are from core/* branches // Can be overridden via IS_NIGHTLY env var for testing -const IS_NIGHTLY = - process.env.IS_NIGHTLY === 'true' || - (process.env.IS_NIGHTLY !== 'false' && - process.env.CI === 'true' && - process.env.GITHUB_REF_NAME === 'main') +const IS_NIGHTLY = process.env.IS_NIGHTLY === 'true' // Disable Vue DevTools for production cloud distribution const DISABLE_VUE_PLUGINS =