This commit is contained in:
NotII
2025-03-24 01:56:17 +00:00
parent 5a2a9d59b7
commit dd25a45abc
3 changed files with 39 additions and 39 deletions

View File

@@ -55,8 +55,6 @@ export async function clientFetch<T = any>(url: string, options: RequestInit = {
// Normalize URL to ensure it uses the Next.js API proxy
const fullUrl = normalizeApiUrl(url);
console.log(`Fetching URL: ${fullUrl}`);
const res = await fetch(fullUrl, {
...options,
headers,

View File

@@ -37,8 +37,6 @@ export async function fetchServer<T = unknown>(
// Get the complete backend URL using the utility function
const url = getServerApiUrl(endpoint);
console.log(`Making server request to: ${url}`);
// Make the request with proper auth headers
const res = await fetch(url, {
...options,