Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle email with Ghost #124

Merged
merged 3 commits into from
Dec 14, 2023
Merged

Handle email with Ghost #124

merged 3 commits into from
Dec 14, 2023

Conversation

Janaka-Steph
Copy link
Contributor

@Janaka-Steph Janaka-Steph commented Dec 14, 2023

Try the Vercel serverless function locally with:

vercel dev

In an other tab:

curl -X POST -H "Content-Type: application/json" -d '{"email":"[email protected]"}' 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":"[email protected]"}' 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.

Copy link

vercel bot commented Dec 14, 2023

@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.

Copy link

vercel bot commented Dec 14, 2023

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

@filopedraz filopedraz merged commit 1549704 into premAI-io:main Dec 14, 2023
2 of 4 checks passed
@Janaka-Steph Janaka-Steph deleted the ghost branch March 19, 2024 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants