Skip to content

Commit 90d00a2

Browse files
davila7claude
andcommitted
fix: Use resolved absolute URL in SSR fetch instead of relative path
The url variable was computed correctly but never used - fetch() still received the original relative COMPONENTS_JSON_URL, causing "Failed to parse URL from /components.json" on server-side rendering. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 05f10a8 commit 90d00a2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dashboard/src/lib/data.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export async function fetchComponents(): Promise<ComponentsData> {
2222
const timeoutId = setTimeout(() => controller.abort(), 15000);
2323

2424
try {
25-
const res = await fetch(COMPONENTS_JSON_URL, {
25+
const res = await fetch(url, {
2626
signal: controller.signal,
2727
});
2828
clearTimeout(timeoutId);

0 commit comments

Comments
 (0)