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 =