Spaces:
Sleeping
Sleeping
orakzai-io commited on
Commit ·
96002e8
1
Parent(s): 66f62e1
CORS issue solved
Browse files- 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 : '
|
| 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`, {
|