-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added Rss feed solving #525 #635
Conversation
@z4nr34l is attempting to deploy a commit to the leerob-site Team on Vercel. A member of the Team first needs to authorize it. |
PR Analysis
PR Feedback
How to use
|
@CodiumAI-Agent /improve |
app/api/blog/feed.xml/route.ts
Outdated
return new Response(feed.xml(), { | ||
status: 200, | ||
headers: { | ||
'Content-Type': 'application/xml' | ||
} | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion: Consider using a constant for the 'Content-Type' header. This will make the code more maintainable and less prone to typos.
return new Response(feed.xml(), { | |
status: 200, | |
headers: { | |
'Content-Type': 'application/xml' | |
} | |
}) | |
const CONTENT_TYPE = 'application/xml'; | |
return new Response(feed.xml(), { | |
status: 200, | |
headers: { | |
'Content-Type': CONTENT_TYPE | |
} | |
}) |
Co-authored-by: CodiumAI-Agent <[email protected]>
Stale, closing. |
Solves: #525
Important: Bumped pnpm lock file version as using latest pnpm.