mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-27 09:45:13 +00:00
Fix reverse proxy (#1532)
This commit is contained in:
@@ -22,7 +22,12 @@ const guardElectronAccess = (
|
|||||||
}
|
}
|
||||||
|
|
||||||
const router = createRouter({
|
const router = createRouter({
|
||||||
history: isFileProtocol() ? createWebHashHistory() : createWebHistory(),
|
history: isFileProtocol()
|
||||||
|
? createWebHashHistory()
|
||||||
|
: // Base path must be specified to ensure correct relative paths
|
||||||
|
// Example: For URL 'http://localhost:7801/ComfyBackendDirect',
|
||||||
|
// we need this base path or assets will incorrectly resolve from 'http://localhost:7801/'
|
||||||
|
createWebHistory(window.location.pathname),
|
||||||
routes: [
|
routes: [
|
||||||
{
|
{
|
||||||
path: '/',
|
path: '/',
|
||||||
|
|||||||
Reference in New Issue
Block a user