completionId: cgen-7d4318c5c4144fba8fe826c44d1891b6

cgen-7d4318c5c4144fba8fe826c44d1891b6
This commit is contained in:
Builder.io 2025-11-15 20:35:21 +00:00
parent 04a8939261
commit 5f9425954b

View file

@ -41,7 +41,8 @@ const Blog = () => {
let cancelled = false;
(async () => {
try {
const res = await fetch(`${API_BASE}/api/blog?limit=50`);
// Use relative path for API calls to work in both dev and prod
const res = await fetch(`/api/blog?limit=50`);
let data: any = [];
try {
if (res.ok) {