mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-03 20:20:03 +00:00
[backport rh-test] make support URL dynamic based on distribution (#6233)
Backport of #6205 to `rh-test` Automatically created by backport workflow. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-6233-backport-rh-test-make-support-URL-dynamic-based-on-distribution-2956d73d365081e5aacecce36a6b9c67) by [Unito](https://www.unito.io) Co-authored-by: Christian Byrne <cbyrne@comfy.org> Co-authored-by: DrJKL <DrJKL@users.noreply.github.com> Co-authored-by: GitHub Action <action@github.com>
This commit is contained in:
17
src/platform/support/config.ts
Normal file
17
src/platform/support/config.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { isCloud } from '@/platform/distribution/types'
|
||||
|
||||
/**
|
||||
* Zendesk ticket form field ID for the distribution tag.
|
||||
* This field is used to categorize support requests by their source (cloud vs OSS).
|
||||
*/
|
||||
const DISTRIBUTION_FIELD_ID = 'tf_42243568391700'
|
||||
|
||||
/**
|
||||
* Support URLs for the ComfyUI platform.
|
||||
* The URL varies based on whether the application is running in Cloud or OSS distribution.
|
||||
*
|
||||
* - Cloud: Includes 'ccloud' tag for identifying cloud-based support requests
|
||||
* - OSS: Includes 'oss' tag for identifying open-source support requests
|
||||
*/
|
||||
const TAG = isCloud ? 'ccloud' : 'oss'
|
||||
export const SUPPORT_URL = `https://support.comfy.org/hc/en-us/requests/new?${DISTRIBUTION_FIELD_ID}=${TAG}`
|
||||
Reference in New Issue
Block a user