Skip to content

Commit 45884d3

Browse files
committed
Windows and Linux best friends
1 parent b3fdc47 commit 45884d3

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 = import.meta.env.PREVIEW?.toLowerCase() === "true";
17+
const isPreview = String(import.meta.env.PREVIEW).toLowerCase() === "true";
1818
export const GET: APIRoute = () =>
1919
new Response(isPreview ? previewRobots : prodRobots);

0 commit comments

Comments
 (0)