premAI-io / state-of-open-source-ai

:closed_book: Clarity in the current fast-paced mess of Open Source innovation
https://book.premai.io/state-of-open-source-ai
Other
1.52k stars 89 forks source link

Handle email with Ghost #124

Closed Janaka-Steph closed 10 months ago

Janaka-Steph commented 10 months ago

Try the Vercel serverless function locally with:

vercel dev

In an other tab:

curl -X POST -H "Content-Type: application/json" -d '{"email":"test@proton.me"}' http://localhost:3000/api/add-member                                                  

///

To deploy in prod:

vercel

In an other tab:

curl -X POST -H "Content-Type: application/json" -d '{"email":"test@proton.me"}' https://state-of-open-source-ai.vercel.app/api/add-member                                                  

In case of error like "Validation error, cannot save member.", an error 500 is returned but the frontend ignore it to not bother the user.

vercel[bot] commented 10 months ago

@Janaka-Steph is attempting to deploy a commit to the Prem Labs Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] commented 10 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
state-of-open-source-ai ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 14, 2023 11:57pm