Better eslint configuration and format some files

This commit is contained in:
prototypa
2023-08-22 22:52:01 -04:00
parent da8ef74b38
commit c1f36e9f79
10 changed files with 37 additions and 43 deletions

View File

@ -14,9 +14,9 @@ export const GET = async () => {
const posts = await fetchPosts();
const { body = "" } = await rss({
const { body = '' } = await rss({
title: `${SITE.name}s Blog`,
description: METADATA?.description || "",
description: METADATA?.description || '',
site: import.meta.env.SITE,
items: posts.map((post) => ({
@ -27,12 +27,12 @@ export const GET = async () => {
})),
trailingSlash: SITE.trailingSlash,
})
});
return new Response(body, {
status: 200,
headers: {
"Content-Type": "application/xml"
}
'Content-Type': 'application/xml',
},
});
};