Deploy / validate-dispatch (push) Successful in 43s
Deploy / scheduled-rebuild-dev (push) Skipped
Deploy / scheduled-rebuild-master (push) Skipped
Deploy / rollback-dev (push) Skipped
Deploy / rollback-master (push) Skipped
Deploy / changes (push) Successful in 13s
Deploy / secret-scan (push) Successful in 9s
Deploy / app-quality (push) Successful in 11m21s
Deploy / security-deps (push) Successful in 14s
Deploy / context (push) Failing after 1s
Deploy / app-image (push) Skipped
Deploy / deploy-dev (push) Skipped
Deploy / deploy-master (push) Skipped
18 lines
471 B
TypeScript
18 lines
471 B
TypeScript
import { SITE_URL } from "../../lib/site";
|
|
|
|
export const dynamic = "force-static";
|
|
|
|
export function GET(): Response {
|
|
const body = [
|
|
'<?xml version="1.0" encoding="UTF-8"?>',
|
|
'<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">',
|
|
` <sitemap><loc>${SITE_URL}/sitemap.xml</loc></sitemap>`,
|
|
"</sitemapindex>",
|
|
"",
|
|
].join("\n");
|
|
|
|
return new Response(body, {
|
|
headers: { "Content-Type": "application/xml; charset=utf-8" },
|
|
});
|
|
}
|