clean up
This commit is contained in:
@@ -52,6 +52,10 @@ export interface Quote {
|
|||||||
{ text: "The most valuable businesses of coming decades will be built by entrepreneurs who seek to empower people rather than try to make them obsolete.", author: "Peter Thiel" },
|
{ text: "The most valuable businesses of coming decades will be built by entrepreneurs who seek to empower people rather than try to make them obsolete.", author: "Peter Thiel" },
|
||||||
];
|
];
|
||||||
|
|
||||||
|
// For backward compatibility with existing code
|
||||||
|
export const quotes = businessQuotes;
|
||||||
|
export default businessQuotes;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a random business quote from the collection
|
* Returns a random business quote from the collection
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -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
|
// Normalize URL to ensure it uses the Next.js API proxy
|
||||||
const fullUrl = normalizeApiUrl(url);
|
const fullUrl = normalizeApiUrl(url);
|
||||||
|
|
||||||
console.log(`Fetching URL: ${fullUrl}`);
|
|
||||||
|
|
||||||
const res = await fetch(fullUrl, {
|
const res = await fetch(fullUrl, {
|
||||||
...options,
|
...options,
|
||||||
headers,
|
headers,
|
||||||
|
|||||||
@@ -37,8 +37,6 @@ export async function fetchServer<T = unknown>(
|
|||||||
// Get the complete backend URL using the utility function
|
// Get the complete backend URL using the utility function
|
||||||
const url = getServerApiUrl(endpoint);
|
const url = getServerApiUrl(endpoint);
|
||||||
|
|
||||||
console.log(`Making server request to: ${url}`);
|
|
||||||
|
|
||||||
// Make the request with proper auth headers
|
// Make the request with proper auth headers
|
||||||
const res = await fetch(url, {
|
const res = await fetch(url, {
|
||||||
...options,
|
...options,
|
||||||
|
|||||||
Reference in New Issue
Block a user