Fix /api/posts fetch in getPosts
cgen-6bac02d8a6004e35871552cd9643fb41
This commit is contained in:
parent
9de9248851
commit
ef51a19e8b
1 changed files with 1 additions and 1 deletions
|
|
@ -358,7 +358,7 @@ export const communityService = {
|
|||
const timeoutId = setTimeout(() => controller.abort(), DEFAULT_TIMEOUT);
|
||||
|
||||
const resp = await fetch(
|
||||
`/api/posts?limit=${encodeURIComponent(String(limit))}`,
|
||||
`${API_BASE}/api/posts?limit=${encodeURIComponent(String(limit))}`,
|
||||
{ signal: controller.signal },
|
||||
);
|
||||
clearTimeout(timeoutId);
|
||||
|
|
|
|||
Loading…
Reference in a new issue