mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-22 15:29:44 +00:00
Use relative url path for reverse proxy hosting on template thumbnails (#2959)
This commit is contained in:
@@ -103,8 +103,8 @@ const isHovered = useElementHover(cardRef)
|
|||||||
const getThumbnailUrl = (index = '') => {
|
const getThumbnailUrl = (index = '') => {
|
||||||
const basePath =
|
const basePath =
|
||||||
sourceModule === 'default'
|
sourceModule === 'default'
|
||||||
? `/templates/${template.name}`
|
? `templates/${template.name}`
|
||||||
: `/api/workflow_templates/${sourceModule}/${template.name}`
|
: `api/workflow_templates/${sourceModule}/${template.name}`
|
||||||
|
|
||||||
// For templates from custom nodes, multiple images is not yet supported
|
// For templates from custom nodes, multiple images is not yet supported
|
||||||
const indexSuffix = sourceModule === 'default' && index ? `-${index}` : ''
|
const indexSuffix = sourceModule === 'default' && index ? `-${index}` : ''
|
||||||
|
|||||||
Reference in New Issue
Block a user