From 1d51dc97e93021b9968da69f1b18e962eb473cc4 Mon Sep 17 00:00:00 2001 From: hugocasa Date: Tue, 3 Feb 2026 19:17:37 +0100 Subject: [PATCH] simplify loading of hubPaths.json in frontend (#7775) --- frontend/src/lib/hub.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/lib/hub.ts b/frontend/src/lib/hub.ts index 78a617397b..80a92cc245 100644 --- a/frontend/src/lib/hub.ts +++ b/frontend/src/lib/hub.ts @@ -1,7 +1,7 @@ import type { Schema } from './common' import { AppService, FlowService, type Flow, type Script } from './gen' import { encodeState } from './utils' -import rawHubPaths from './hubPaths.json?raw' +import hubPathsData from './hubPaths.json' import { replacePlaceholderForSignatureScriptTemplate, SIGNATURE_TEMPLATE_FLOW_HUB_ID, @@ -101,4 +101,4 @@ type HubPaths = { appReport: string } -export const hubPaths = JSON.parse(rawHubPaths) as HubPaths +export const hubPaths = hubPathsData as HubPaths