Tahasaif3 commited on
Commit
c4da317
·
1 Parent(s): 402e8de
Files changed (3) hide show
  1. lib/api.ts +1 -1
  2. lib/auth.ts +1 -1
  3. lib/chatApi.ts +1 -1
lib/api.ts CHANGED
@@ -1,7 +1,7 @@
1
  // API client configuration
2
  // Use the backend API URL from environment variable
3
  // In development, fallback to localhost
4
- const API_URL = process.env.NEXT_PUBLIC_API_URL || 'http://localhost:8000';
5
 
6
  // Import types
7
  import { Task, TaskListResponse, Project, ProjectCreate, ProjectUpdate, ProjectProgress, User } from './types';
 
1
  // API client configuration
2
  // Use the backend API URL from environment variable
3
  // In development, fallback to localhost
4
+ const API_URL = 'https://tahasaif3-ai-taskflow-backend.hf.space';
5
 
6
  // Import types
7
  import { Task, TaskListResponse, Project, ProjectCreate, ProjectUpdate, ProjectProgress, User } from './types';
lib/auth.ts CHANGED
@@ -9,7 +9,7 @@ export const auth = betterAuth({
9
  updateAge: 24 * 60 * 60, // Update session every 24 hours if active
10
  },
11
  // Configure to work with backend that sets httpOnly cookies
12
- baseURL: process.env.NEXT_PUBLIC_API_URL || "http://localhost:8000",
13
  // Do NOT store tokens in localStorage as per requirements
14
  // Rely on httpOnly cookies set by backend
15
  cookies: {
 
9
  updateAge: 24 * 60 * 60, // Update session every 24 hours if active
10
  },
11
  // Configure to work with backend that sets httpOnly cookies
12
+ baseURL: 'https://tahasaif3-ai-taskflow-backend.hf.space',
13
  // Do NOT store tokens in localStorage as per requirements
14
  // Rely on httpOnly cookies set by backend
15
  cookies: {
lib/chatApi.ts CHANGED
@@ -1,5 +1,5 @@
1
  // API URL from environment variable
2
- const API_URL = process.env.NEXT_PUBLIC_API_URL || 'http://localhost:8000';
3
 
4
  /**
5
  * Chat API client for interacting with the chat endpoint
 
1
  // API URL from environment variable
2
+ const API_URL = 'https://tahasaif3-ai-taskflow-backend.hf.space';
3
 
4
  /**
5
  * Chat API client for interacting with the chat endpoint