mirror of
https://github.com/mendableai/firecrawl.git
synced 2024-11-16 11:42:24 +08:00
Update sitemap.ts
This commit is contained in:
parent
8568b61015
commit
4051630632
|
@ -19,7 +19,7 @@ export async function getLinksFromSitemap(
|
||||||
try {
|
try {
|
||||||
let content: string;
|
let content: string;
|
||||||
try {
|
try {
|
||||||
if (mode === 'axios') {
|
if (mode === 'axios' || process.env.FIRE_ENGINE_BETA_URL === '') {
|
||||||
const response = await axios.get(sitemapUrl, { timeout: axiosTimeout });
|
const response = await axios.get(sitemapUrl, { timeout: axiosTimeout });
|
||||||
content = response.data;
|
content = response.data;
|
||||||
} else if (mode === 'fire-engine') {
|
} else if (mode === 'fire-engine') {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user