News for hackers. Stuff that matters.
Re:Waku: The Minimalist React Framework with Server Components by wokwokwok on Sunday August 27, 2023 @10:41AM (#37283175)
…have you used next?

https://nextjs.org/docs/app/building-your-application/data-f...

Spoiler: you don’t get an api.

Re:Waku: The Minimalist React Framework with Server Components by opes on Sunday August 27, 2023 @11:36AM (#37283667)
From those same docs, it appears you can build an API with Route Handlers when using Server Components:

https://nextjs.org/docs/app/building-your-application/routin...

Re:Waku: The Minimalist React Framework with Server Components by leerob on Sunday August 27, 2023 @11:38AM (#37283689)
Correct. It can also run during the build, so it can be used to dynamically generated .txt, .json, or any other files. Great when deploying a static export of Next.js and dumping on S3 or similar.

https://nextjs.org/docs/app/building-your-application/deploy...

Re:Waku: The Minimalist React Framework with Server Components by robertoandred on Sunday August 27, 2023 @07:31PM (#37287703)
Do you know what an api is?