Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,10 @@ export default function Home() {
}))
)

// Make a direct request to the backend API instead of using the crawlPages function
const backendUrl = process.env.NEXT_PUBLIC_BACKEND_URL || process.env.BACKEND_URL || 'http://localhost:24125'
console.log('Making direct request to backend:', `${backendUrl}/api/crawl`)
// Use the Next.js API route instead of direct backend request
console.log('Making request to Next.js API route: /api/crawl')

const response = await fetch(`${backendUrl}/api/crawl`, {
const response = await fetch(`/api/crawl`, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Expand Down