Skip to content

Commit a9fc5f4

Browse files
committed
Replace env.PREVIEW usage with Astro env.PROD .
1 parent 6415308 commit a9fc5f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pages/robots.txt.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ Allow: /
1414
Sitemap: https://ep2025.europython.eu/sitemap-index.xml
1515
`;
1616

17-
const isPreview = String(import.meta.env.PREVIEW).toLowerCase() === "true";
17+
const isPreview = import.meta.env.MODE == "preview";
1818
export const GET: APIRoute = () =>
1919
new Response(isPreview ? previewRobots : prodRobots);

0 commit comments

Comments
 (0)