File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,11 +16,12 @@ import { APP_VERSION } from "~/branding";
1616
1717const DEFAULT_EXPORT_INTERVAL_MS = 1_000 ;
1818// PR previews can't mark themselves in APP_VERSION without breaking the version-skew check against the server.
19- const RELEASE_CHANNEL = import . meta. env . DEV
20- ? "dev"
21- : import . meta. env . VITE_RELEASE_CHANNEL === "preview"
22- ? "preview"
23- : releaseChannelOf ( APP_VERSION ) ;
19+ const RELEASE_CHANNEL =
20+ import . meta. env . DEV || import . meta. env . VITE_RELEASE_CHANNEL === "dev"
21+ ? "dev"
22+ : import . meta. env . VITE_RELEASE_CHANNEL === "preview"
23+ ? "preview"
24+ : releaseChannelOf ( APP_VERSION ) ;
2425const CLIENT_TRACING_RESOURCE = {
2526 serviceName : "t3code-web" ,
2627 attributes : {
Original file line number Diff line number Diff line change @@ -39,7 +39,8 @@ const configuredRelayTracingUrl = repoEnv.VITE_RELAY_OTLP_TRACES_URL?.trim() ||
3939const configuredRelayTracingDataset = repoEnv . VITE_RELAY_OTLP_TRACES_DATASET ?. trim ( ) || "" ;
4040const configuredRelayTracingToken = repoEnv . VITE_RELAY_OTLP_TRACES_TOKEN ?. trim ( ) || "" ;
4141const configuredHostedAppChannel = process . env . VITE_HOSTED_APP_CHANNEL ?. trim ( ) || "" ;
42- const configuredReleaseChannel = process . env . VITE_RELEASE_CHANNEL ?. trim ( ) || "" ;
42+ const configuredReleaseChannel =
43+ process . env . T3CODE_BUILT_DEV === "1" ? "dev" : process . env . VITE_RELEASE_CHANNEL ?. trim ( ) || "" ;
4344const configuredAppVersion = process . env . APP_VERSION ?. trim ( ) || pkg . version ;
4445const configuredDesktopUpdateRepository =
4546 process . env . T3CODE_DESKTOP_UPDATE_REPOSITORY ?. trim ( ) ||
You can’t perform that action at this time.
0 commit comments