completionId: cgen-7d4318c5c4144fba8fe826c44d1891b6
cgen-7d4318c5c4144fba8fe826c44d1891b6
This commit is contained in:
parent
04a8939261
commit
5f9425954b
1 changed files with 2 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue