forked from React-Group/interstellar_ai
		
	Compare commits
	
		
			No commits in common. "2e67f911c1ed1ab788be7b1721dba09801586eab" and "82b041711c4f2bbcef112e591b3affcffc14264b" have entirely different histories.
		
	
	
		
			2e67f911c1
			...
			82b041711c
		
	
		
					 1 changed files with 1 additions and 5 deletions
				
			
		|  | @ -19,11 +19,7 @@ to check if the request was accepted or declined, check response.data.response, | ||||||
| */ | */ | ||||||
| 
 | 
 | ||||||
| const apiURL = new URL("http://localhost:5000/interstellar_ai/db") | const apiURL = new URL("http://localhost:5000/interstellar_ai/db") | ||||||
| if (typeof window !== 'undefined') { |  | ||||||
| apiURL.hostname = window.location.hostname; | apiURL.hostname = window.location.hostname; | ||||||
| } else { |  | ||||||
|   apiURL.hostname = "localhost" |  | ||||||
| } |  | ||||||
| 
 | 
 | ||||||
| export const sendToDatabase = async (data: object): Promise<boolean> => { | export const sendToDatabase = async (data: object): Promise<boolean> => { | ||||||
|   try { |   try { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue