fix error

This commit is contained in:
motahhari
2025-10-31 18:04:38 +03:30
parent a96fbfa91c
commit 33d4edae67
5 changed files with 7 additions and 5 deletions

View File

@@ -47,7 +47,7 @@ export type PagedResult<T> = {
pageSize: number
}
const API_BASE = process.env.NEXT_PUBLIC_API_URL ?? 'http://localhost:5064'
const API_BASE = process.env.NEXT_PUBLIC_API_URL ?? 'https://ghback.nabaksoft.ir'
async function http<T>(url: string, init?: RequestInit): Promise<T> {
const res = await fetch(url, { ...init, headers: { 'Content-Type': 'application/json', ...(init?.headers || {}) } })