orakzai-io commited on
Commit
96002e8
·
1 Parent(s): 66f62e1

CORS issue solved

Browse files
Files changed (1) hide show
  1. Frontend/src/api.ts +1 -1
Frontend/src/api.ts CHANGED
@@ -1,5 +1,5 @@
1
  const envUrl = import.meta.env.VITE_API_URL;
2
- export const API_URL = (envUrl !== undefined && envUrl !== null) ? envUrl : 'http://127.0.0.1:8000';
3
 
4
  export async function submitUrls(urls: string[]) {
5
  const response = await fetch(`${API_URL}/scrape`, {
 
1
  const envUrl = import.meta.env.VITE_API_URL;
2
+ export const API_URL = (envUrl !== undefined && envUrl !== null) ? envUrl : '';
3
 
4
  export async function submitUrls(urls: string[]) {
5
  const response = await fetch(`${API_URL}/scrape`, {