-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
412a383
commit b448a14
Showing
8 changed files
with
27 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,18 @@ | ||
/* eslint-disable @typescript-eslint/no-explicit-any */ | ||
import { useQuery } from 'react-query' | ||
|
||
import { queryClient } from '@/lib/react-query' | ||
import { getScrapStatus } from '@/services/getScrapStatus' | ||
|
||
export function useStatus({ haveDomain }: { haveDomain: boolean }) { | ||
return useQuery({ | ||
queryFn: getScrapStatus, | ||
queryKey: ['getScrapStatus', haveDomain], | ||
refetchInterval: 1_000, | ||
enabled: haveDomain, | ||
throwOnError: (error) => error.response?.status >= 500, | ||
// enabled: haveDomain, | ||
onError: (e: any) => { | ||
console.error('Error', e?.message) | ||
queryClient.invalidateQueries(['getTree', 'getScrapStatus']) | ||
}, | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
import axios from 'axios' | ||
|
||
export const api = axios.create({ | ||
baseURL: 'https://sitemapper-v1-2.onrender.com', | ||
// baseURL: 'https://project-web-crawler.onrender.com', | ||
baseURL: 'https://project-web-crawler-production.up.railway.app/', | ||
// baseURL: 'http://localhost:3000', | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
b448a14
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
project-web-crawler – ./
project-web-crawler-git-main-sitemapper.vercel.app
project-web-crawler.vercel.app
project-web-crawler-sitemapper.vercel.app
www.sitemapper.net
sitemapper.net