migrate domain

This commit is contained in:
2022-11-01 00:07:14 -04:00
parent c7cd1fef32
commit d7934568bd
8 changed files with 17 additions and 17 deletions

View File

@@ -4,7 +4,7 @@ import { SitemapStream, streamToPromise } from "sitemap";
export default defineEventHandler(async (event) => {
// Fetch all documents
const docs = await serverQueryContent(event).find();
const sitemap = new SitemapStream({ hostname: "https://eggworld.tk" });
const sitemap = new SitemapStream({ hostname: "https://eggworld.me" });
for (const doc of docs) {
sitemap.write({ url: doc._path, changefreq: "monthly" });
}