Open nynevi opened 4 months ago
just fyi the searching will still not work. see my comment in the PR https://github.com/transitive-bullshit/nextjs-notion-starter-kit/pull/619#issue-2377316849
for people trying to make searching work, react-notion-x version 6.16.1 has the fix https://github.com/NotionX/react-notion-x/compare/v6.16.0...v6.16.1#diff-730f034e11dd4199e0434acf6897a2b1cb0642641b160fd1c5be24753fda487eR552
but unfortunately it is not published to npm. latest on npm is 6.16.0 https://www.npmjs.com/package/react-notion-x
I tried cloning react-notion-x and trying to build but ran into arm64 related issues of sharp
package.
I found an alternative https://github.com/ijjk/notion-blog but that also does not use official notion client https://www.npmjs.com/package/@notionhq/client I anticipate that notion-blog will have similar issues. I think it is best that we create our own nextjs application with notion's client
Hey, this happened to me also on Vercel (production) for several days. I got it working now.
next build
and run next start
. Test it in local.vercel deploy
, it will trigger new deploy on Vercel. After the deployment done, test it using the assigned custom domain (search should work)vercel --prod
to enable it to the main domainI have no idea why the Vercel build by Git integration always gave me Uncaught Error: Could not load the "sharp" module using the linux-x64 runtime
error. Building it from my local WSL machine and deploy it using CLI just works. 🙃
Description
main
branch on commit0e40674e88f8429fbb136d032ae77be17f1bda9c
(the latest as of this date)site.config.ts
as specified in readmeyarn dev
expected:
experienced:
Notion Test Page ID
0191bcee9db04c3690b84062af8f12e2