diff --git a/src/routes/addScans.ts b/src/routes/addScans.ts index e5a698b..379e141 100644 --- a/src/routes/addScans.ts +++ b/src/routes/addScans.ts @@ -33,7 +33,7 @@ export const addScans = async ({ request, reply }) => { sitemap: 'sitemapurl', } - const scanResponse = await (await fetch(`https://scan.equalify.app/generate/${discoveryDict?.[property.discovery] ?? 'url'}`, { + const scanResponse = await (await fetch(`https://scan${isStaging ? '-dev' : ''}.equalify.app/generate/${discoveryDict?.[property.discovery] ?? 'url'}`, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ url: property.property_url, userId: jwtClaims.sub })