don't just alias

This commit is contained in:
bymyself
2025-12-11 04:51:09 -08:00
parent 91db13909f
commit 958dd53530
7 changed files with 33 additions and 20 deletions

View File

@@ -1,5 +1,3 @@
import { isElectron } from '@/utils/envUtil'
/**
* Distribution types and compile-time constants for managing
* multi-distribution builds (Desktop, Localhost, Cloud)
@@ -15,6 +13,6 @@ declare global {
const DISTRIBUTION: Distribution = __DISTRIBUTION__
/** Distribution type checks */
export const isDesktop = DISTRIBUTION === 'desktop' || isElectron() // TODO: replace with build var
export const isDesktop = DISTRIBUTION === 'desktop'
export const isCloud = DISTRIBUTION === 'cloud'
// export const isLocalhost = DISTRIBUTION === 'localhost' || (!isDesktop && !isCloud)