File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,14 +34,11 @@ export default function Search() {
3434 }
3535
3636 try {
37- const response = await fetch (
38- "http://ec2-18-119-119-145.us-east-2.compute.amazonaws.com/api/process" ,
39- {
40- method : "POST" ,
41- headers : { "Content-Type" : "application/json" } ,
42- body : JSON . stringify ( { repo_url : url , feature_description : query } ) ,
43- }
44- ) ;
37+ const response = await fetch ( "https://e35d-208-98-222-98.ngrok-free.app/api/process" , {
38+ method : "POST" ,
39+ headers : { "Content-Type" : "application/json" } ,
40+ body : JSON . stringify ( { repo_url : trimmedUrl , feature_description : trimmedQuery } ) ,
41+ } ) ;
4542
4643 if ( ! response . ok ) {
4744 console . error ( response . status ) ;
@@ -97,7 +94,8 @@ export default function Search() {
9794 setShowNotification ( false ) ;
9895 setSummaryContent ( final ) ;
9996 setShowSummary ( true ) ;
100- } catch {
97+ } catch ( error ) {
98+ console . error ( "Error:" , error ) ;
10199 setNotificationMessage ( "Failed to connect to the server." ) ;
102100 setShowNotification ( true ) ;
103101 }
You can’t perform that action at this time.
0 commit comments