simplify loading of hubPaths.json in frontend (#7775)

This commit is contained in:
hugocasa
2026-02-03 19:17:37 +01:00
committed by GitHub
parent 701eb4bae4
commit 1d51dc97e9
+2 -2
View File
@@ -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