Http://localhost:3000/.netlify/functions/search 500 (Internal Server Error)

Hey @lxf,

Some reading material for you as to why this might happen.

Firstly, are any applicable packages out-of-date? See this or this, for example. Unlikely given your setup but worth checking and considering!

Secondly, can you check whether your JSON syntax is valid? See this. Quite likely!

Lastly, is everything where it should be? See this. Depending on your build directory, this could be throwing a spanner in the works.