diff --git a/plugins/sitemap.ts b/plugins/sitemap.ts index 623f3724..0f3b2162 100644 --- a/plugins/sitemap.ts +++ b/plugins/sitemap.ts @@ -40,7 +40,7 @@ export default function (userOptions?: Partial) { // Search for the `robots.txt` file const robots = site.files.some((file: StaticFile) => - file.dest === "/robots.txt" + file.outputPath === "/robots.txt" ); // If the `robots.txt` file doesn't exist, create it