File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/components/IntegrationGrid Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -159,12 +159,13 @@ function useCMSIntegrations() {
159159 const [ integrations , setIntegrations ] = useState < IntegrationData [ ] > ( [ ] ) ;
160160 const [ loading , setLoading ] = useState ( true ) ;
161161 const [ error , setError ] = useState < string | null > ( null ) ;
162+ const fallbackPath = useBaseUrl ( '/integrations-fallback.json' ) ;
162163
163164 useEffect ( ( ) => {
164165 const fetchIntegrations = async ( ) => {
165166 // Step 1: Load fallback data first for immediate display
166167 try {
167- const fallbackResponse = await fetch ( '/integrations-fallback.json' , {
168+ const fallbackResponse = await fetch ( fallbackPath , {
168169 cache : 'force-cache' // Use cached version if available
169170 } ) ;
170171
@@ -235,7 +236,7 @@ function useCMSIntegrations() {
235236 } ;
236237
237238 fetchIntegrations ( ) ;
238- } , [ ] ) ;
239+ } , [ fallbackPath ] ) ;
239240
240241 return { integrations, loading, error } ;
241242}
You can’t perform that action at this time.
0 commit comments