Compare commits

..

2 Commits

Author SHA1 Message Date
46bbeed525 hero fix 2026-02-28 23:38:11 +01:00
7258f059ce fix: remove duplicate /api/v1 in article detail route loader 2026-02-28 23:37:12 +01:00
2 changed files with 9 additions and 9 deletions

View File

@ -124,7 +124,7 @@ export function HeroArticle() {
<div className="flex items-center justify-between pt-4 border-t-2 border-foreground/10">
<Link to="/articles/$id" params={{ id: article.id }}>
<Button variant="brutalAccent" className="gap-2">
Read Full Story
Прочитај повеќе
<ArrowRight className="w-4 h-4" />
</Button>
</Link>

View File

@ -196,7 +196,7 @@ const articleDetailRoute = createRoute({
return <ArticleDetailComponent id={id} />
},
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 }
}