193 likes
·
6.6K reads
32 comments
Nice article Tapas Adhikary. Loved it
An other important point that can be added here👆 is API key will be exposed to the client which can be obtained easily by inspecting network requests.
Lalit, Thanks a ton for liking and contributing to the post. I have made the edit to capture the precious point you have made, Lalit. Have a great day, my friend.
The API keys won't be exposed IF they are used in serverless functions
Usman Sabuwala Right, that's the point.
Thanks a lot for considering my point Tapas Adhikary 😇
This is awesome. Thanks for sharing! I’m currently revamping my website which is built with Eleventy, but you gave me some good ideas to try to replicate!
Thank you Sam Sycamore. Glad you found it helpful. All the best for your website.
This is amazing!! Incredible work — definitely have to test this out! 🙌🙌
Thanks a lot Brian H. Hough 🙂
You killed it Tapas Adhikary, incredible article. I was looking for some kind of article like this. Very well done 👏
Keep it up! Its super useful 🙏
Thanks a lot Savio Martin
This is amazing. Loved it ❤️. A great way to integrate a newsletter easily. You explained it really well Tapas Adhikary
Thanks a lot Yogesh Chavan. Glad you liked it. I hope, this integration is used by many :)
Loved it Tapas Adhikary! This is a super unique project 😍
Thanks Usman Sabuwala bro... Taking lots of Youtube inspiration from you :)
I really needed a tutorial like this, Thanks Tapas Adhikary
Great, thanks Suhail Kakar
This is fantastic, Tapas! Lovely tutorial!
Thank you Braydon Coyer, Glad you liked it.
This is awesome Tapas Adhikary
Thanks Avneesh Agarwal.
This is pretty interesting Tapas
Thanks boss Olubisi Idris Ayinde :)
You are the boss here 😂😂😂 Tapas Adhikary Thanks for sharing 🙌
I'll Jump into very soon. Thank you Tapas.
Great, thanks Yoog 🧡
Nice Article Tapas, Now i am also thinking to start creating my newsletter.
Great to know Dhiraj Kumar, Yep that will be just fab.
Really loved it Tapas Adhikary
Bookmarking it for future reference. Thanks a lot for sharing 😍
That's cool Suprabha Supi. You are most welcome.
how we can create this without Nextjs api routes?
You can call any external APIs(using axios, fetch, whatever) from your components directly without writing any API routes yourself. However, I wouldn't recommend that.
Next.js API routes have some clear advantages:
- You build your own APIs so that you can use the API for different consumers in the app.
- The secrets are handled on the server side. you do not have the API keys mashed up in your client code.