Adding Brave Rewards To NextJS Blog or Website

How do you add brave rewards to your website or blog, when adding .well-known folder didn't work


4 min read 08/08/21

Brave?

Honestly, it's the future

Click to skip the intro.

I've discovered Brave about two years ago, but began actively using it after I saw a Lex's podcast with Brendan Eich the founder of Brave, co-founder of Mozilla and JavaScript creator.

It's an awesome browser, and I love the rewards system they have implemented, essentially Brave offers:

  • A seamless way to tip the creators of the content you love.
  • Security and privacy features right out of the box. (having Tor without Tor is cool, not claiming it's bulletproof)
  • An easy way to earn a few dollars on a side from seeing ads, without them being intrusive.
  • And all other features

I believe, at some point, it will be on the list of the most used browsers, just like Chrome/Firefox/Safari.

I even use it for development, it has Chrome dev tools, but does not drain my battery and cpu like Chrome does.

I am a madman to say such a thing, but for the first time in my life, I don't have deep aversion to ads, as I always do anywhere else on the web.

It's not all sunshine and roses, there are many things they should improve on. Nevertheless, I do consider Brave a worth while experience. I'll leave my criticism for another time.

---------------8<-------------[ cut here ]-----------------

Problem

You have stumbled upon this blog post for a reason

And I suppose you have tried doing this:

  • Create and verify Uphold wallet to receive BAT tokens
  • Create an account for Brave Rewards – Creators
  • Claim your platforms, specifically website option

You tried adding it through the recommend way, which involves adding .well-known folder with the txt file they give you. In my case I put it inside my public folder in NextJS app; after a day of waiting and a day of trying to find a solution why I couldn't verify my platform. I gave up and tried adding a DNS record.

What happened?

I wish I knew, it certainly said that's the easiest way to get started.

I was going to contact Brave directly and ask if I was doing everything the way it supposed to work. Yet, adding DNS was a five minute venture and I quickly forgot about as the problem went away.

Solution

Just add brave-rewards through DNS records, in fact that's the easiest way

Simply go to your DNS records, on Vercel and Netlify it's pretty much the same process, here are the links to the docs, that explain in detail where you find the control panel for DNS. Yet, I'm sure the process is more or less the same for every provider.

To edit the existing DNS Records of your Domain or add new ones:

  1. Navigate to the Domains page of your Project Settings.
  2. Click edit on the domain of your choice, you'll find a link at the bottom of the view.
  3. The last step would be adding TXT record with TTL value around 1 - 3 days.

This is pretty much it, you are done. Click verify at brave rewards creators. Go to your website and check verification badge. It should say you are a verified creator now!

---------------8<-------------[ cut here ]-----------------

Conclusion

Just do it!

Oh, and do not forget to add any other channels to your account, hooking up social media is a breeze and doesn't require much work! Hopefully this article helps you to add brave rewards to your website.

dashboard-1

This the end, my dear friend. Now let's grow the user base of like minded people. Subscribe if you like what you're seeing. 🔨