diff --git a/frontend/src/routes.tsx b/frontend/src/routes.tsx index a60434d..3c69cfc 100644 --- a/frontend/src/routes.tsx +++ b/frontend/src/routes.tsx @@ -196,7 +196,7 @@ const articleDetailRoute = createRoute({ return }, loader: async ({ params }) => { - const response = await fetch(`${import.meta.env.VITE_API_URL || 'http://localhost:3000'}/api/v1/articles/${params.id}`) + const response = await fetch(`${import.meta.env.VITE_API_URL || 'http://localhost:3000/api/v1'}/articles/${params.id}`) if (!response.ok) { return { article: null } }