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 6415308 commit a9fc5f4Copy full SHA for a9fc5f4
src/pages/robots.txt.ts
@@ -14,6 +14,6 @@ Allow: /
14
Sitemap: https://ep2025.europython.eu/sitemap-index.xml
15
`;
16
17
-const isPreview = String(import.meta.env.PREVIEW).toLowerCase() === "true";
+const isPreview = import.meta.env.MODE == "preview";
18
export const GET: APIRoute = () =>
19
new Response(isPreview ? previewRobots : prodRobots);
0 commit comments