Scheduled research persona generation

This commit is contained in:
ajaysi
2025-11-05 08:51:00 +05:30
parent 55087c4f37
commit d99c7c83a7
98 changed files with 14518 additions and 828 deletions

View File

@@ -3,8 +3,12 @@ const testAIIntegration = async () => {
try {
console.log('Testing AI Integration...');
// Get API URL from environment variables (consistent with other services)
const apiUrl = process.env.REACT_APP_API_URL || process.env.REACT_APP_BACKEND_URL || '';
const baseUrl = apiUrl || 'http://localhost:8000'; // Fallback only for test utility
// Test the AI analytics endpoint
const response = await fetch('http://localhost:8000/api/content-planning/ai-analytics/');
const response = await fetch(`${baseUrl}/api/content-planning/ai-analytics/`);
if (!response.ok) {
throw new Error(`HTTP error! status: ${response.status}`);