Spaces:
Sleeping
Sleeping
'change'
Browse files- lib/api.ts +1 -1
- lib/auth.ts +1 -1
- 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 =
|
| 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:
|
| 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 =
|
| 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
|