Update server-api.ts
This commit is contained in:
@@ -129,7 +129,7 @@ export async function getPlatformStatsServer() {
|
|||||||
|
|
||||||
// Make direct request without auth
|
// Make direct request without auth
|
||||||
const res = await fetch(url, {
|
const res = await fetch(url, {
|
||||||
cache: 'no-store', // Always fetch fresh data
|
cache: 'no-store',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json'
|
'Content-Type': 'application/json'
|
||||||
}
|
}
|
||||||
@@ -142,7 +142,6 @@ export async function getPlatformStatsServer() {
|
|||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
|
||||||
// If API returned empty data, use sample data
|
|
||||||
console.info('Using sample stats data for demo');
|
console.info('Using sample stats data for demo');
|
||||||
return {
|
return {
|
||||||
orders: {
|
orders: {
|
||||||
|
|||||||
Reference in New Issue
Block a user