Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
test: fix sitemap runtime fs error by making sitemap cache on build time
Ben Fornefeld6a87672dee15
diff --git a/apps/web/src/app/sitemap.ts b/apps/web/src/app/sitemap.tsindex 47809ba81..edbdb9937 100644--- a/apps/web/src/app/sitemap.ts+++ b/apps/web/src/app/sitemap.ts@@ -10,6 +10,8 @@ import {changelogFramerHostname,} from '@/app/hostnames'+export const dynamic = 'force-static'+type ChangeFrequency =| 'always'| 'hourly'@@ -60,7 +62,7 @@ type Sitemap = {async function getXmlData(url: string): Promise<Sitemap> {const parser = new XMLParser()- const response = await fetch(url, { cache: 'no-cache' })+ const response = await fetch(url)if (!response.ok) {return { urlset: { url: [] } }