Sign in
Log inSign up
Tapas Adhikary

193 likes

·

6.6K reads

32 comments

Lalit
Lalit
Aug 28, 2021

Nice article Tapas Adhikary. Loved it


image.png 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.

6
·
·4 replies
Tapas Adhikary
Tapas Adhikary
Author
·Aug 28, 2021

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.

image.png

6
·
Usman Sabuwala
Usman Sabuwala
Aug 28, 2021

The API keys won't be exposed IF they are used in serverless functions

2
·
Tapas Adhikary
Tapas Adhikary
Author
·Aug 28, 2021

Usman Sabuwala Right, that's the point.

1
·
Lalit
Lalit
Aug 28, 2021

Thanks a lot for considering my point Tapas Adhikary 😇

1
·
Sycamore
Sycamore
Aug 28, 2021

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!

4
·
·1 reply
Tapas Adhikary
Tapas Adhikary
Author
·Aug 28, 2021

Thank you Sam Sycamore. Glad you found it helpful. All the best for your website.

·
Brian H. Hough
Brian H. Hough
Aug 31, 2021

This is amazing!! Incredible work — definitely have to test this out! 🙌🙌

4
·
·1 reply
Tapas Adhikary
Tapas Adhikary
Author
·Sep 1, 2021

Thanks a lot Brian H. Hough 🙂

·
Savio Martin
Savio Martin
Aug 28, 2021

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 🙏

3
·
·1 reply
Tapas Adhikary
Tapas Adhikary
Author
·Aug 28, 2021

Thanks a lot Savio Martin

·
Yogesh Chavan
Yogesh Chavan
Aug 28, 2021

This is amazing. Loved it ❤️. A great way to integrate a newsletter easily. You explained it really well Tapas Adhikary

3
·
·1 reply
Tapas Adhikary
Tapas Adhikary
Author
·Aug 28, 2021

Thanks a lot Yogesh Chavan. Glad you liked it. I hope, this integration is used by many :)

·
Usman Sabuwala
Usman Sabuwala
Aug 28, 2021

Loved it Tapas Adhikary! This is a super unique project 😍

3
·
·1 reply
Tapas Adhikary
Tapas Adhikary
Author
·Aug 28, 2021

Thanks Usman Sabuwala bro... Taking lots of Youtube inspiration from you :)

·
Suhail Kakar
Suhail Kakar
Aug 28, 2021

I really needed a tutorial like this, Thanks Tapas Adhikary

3
·
·1 reply
Tapas Adhikary
Tapas Adhikary
Author
·Aug 28, 2021

Great, thanks Suhail Kakar

·
Braydon Coyer
Braydon Coyer
Aug 28, 2021

This is fantastic, Tapas! Lovely tutorial!

3
·
·1 reply
Tapas Adhikary
Tapas Adhikary
Author
·Aug 28, 2021

Thank you Braydon Coyer, Glad you liked it.

·
Avneesh Agarwal
Avneesh Agarwal
Aug 28, 2021

This is awesome Tapas Adhikary

3
·
·1 reply
Tapas Adhikary
Tapas Adhikary
Author
·Aug 28, 2021
1
·
Idris Olubisi
Idris Olubisi
Aug 28, 2021

This is pretty interesting Tapas

3
·
·2 replies
Tapas Adhikary
Tapas Adhikary
Author
·Aug 28, 2021

Thanks boss Olubisi Idris Ayinde :)

3
·
Idris Olubisi
Idris Olubisi
Aug 28, 2021

You are the boss here 😂😂😂 Tapas Adhikary Thanks for sharing 🙌

1
·
Yoog
Yoog
Aug 28, 2021

I'll Jump into very soon. Thank you Tapas.

3
·
·1 reply
Tapas Adhikary
Tapas Adhikary
Author
·Aug 29, 2021

Great, thanks Yoog 🧡

·
Dhiraj Kumar
Dhiraj Kumar
Aug 30, 2021

Nice Article Tapas, Now i am also thinking to start creating my newsletter.

3
·
·1 reply
Tapas Adhikary
Tapas Adhikary
Author
·Aug 30, 2021

Great to know Dhiraj Kumar, Yep that will be just fab.

·
Suprabha Supi
Suprabha Supi
Aug 30, 2021

Really loved it Tapas Adhikary

Bookmarking it for future reference. Thanks a lot for sharing 😍

3
·
·1 reply
Tapas Adhikary
Tapas Adhikary
Author
·Aug 30, 2021

That's cool Suprabha Supi. You are most welcome.

·
Ai Anshu
Ai Anshu
Dec 4, 2022

how we can create this without Nextjs api routes?

3
·
·1 reply
Tapas Adhikary
Tapas Adhikary
Author
·Dec 5, 2022

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