We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3fdc47 commit 45884d3Copy full SHA for 45884d3
src/pages/robots.txt.ts
@@ -14,6 +14,6 @@ Allow: /
14
Sitemap: https://ep2025.europython.eu/sitemap-index.xml
15
`;
16
17
-const isPreview = import.meta.env.PREVIEW?.toLowerCase() === "true";
+const isPreview = String(import.meta.env.PREVIEW).toLowerCase() === "true";
18
export const GET: APIRoute = () =>
19
new Response(isPreview ? previewRobots : prodRobots);
0 commit comments