swilgosz/hanamimastery

RSS Not working

swilgosz opened this issue · 0 comments

Overview

RSS feed returns 500 page.

Steps to reproduce.

Visit https://hanamimastery.com/feed

Suggested Fix

On vercel we get two problems with generating sitemaps or RSS files.

  1. They need to be generated in build-time, not on fly, when the request happens, due to timeouts.
  2. Because of how vercel static page generation works, the data files cannot be found in the repo after being built.

image

Possible solution would be to replace getServerSideProps with getStaticProps in the pages/feed.jsx. However, it requires some adjustments, as those functions work differently.