transitive-bullshit / nextjs-notion-starter-kit

Deploy your own Notion-powered website in minutes with Next.js and Vercel.
https://transitivebullsh.it/nextjs-notion-starter-kit
MIT License
6.25k stars 5.26k forks source link

Search Button #517

Open debiantano opened 1 year ago

debiantano commented 1 year ago

The search button does not filter any articles, it only shows a loading icon but does not perform a search https://drive.google.com/file/d/12Lj_nr2ZsinTy_iayI-tk9OGQKPM1z-t/view?usp=sharing

noisonnoiton commented 1 year ago
image

I got same result, that search API return code 405.

jsantiago611 commented 1 year ago

Same here result here, on multiple deployments

Kiaana commented 1 year ago

same on Vercel

Armster15 commented 1 year ago

The issue lies in the library notion-client which is used by this repository. I created a pull request to fix the issue: https://github.com/NotionX/react-notion-x/pull/505 but in the meantime you can use patch-package to resolve it until the PR is (hopefully) merged

danni-cool commented 1 year ago

The issue lies in the library notion-client which is used by this repository. I created a pull request to fix the issue: NotionX/react-notion-x#505 but in the meantime you can use patch-package to resolve it until the PR is (hopefully) merged

Cool, buddy. I was trying to fix the problem today and pulled down the project, then I noticed your code. It's kind of annoying. if someone wants to know how to patch the package, link is here. https://danni.cool/2023/10/17/Fixed%20the%20broken%20search%20in%20nextjs-notion-starter-kit/