Skip to content

Commit f96aafc

Browse files
committed
fix url for static fallback file
1 parent 1916f9e commit f96aafc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/IntegrationGrid/IntegrationGrid.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)