What is Nostr?
tony / Tony Gaeta
npub17hx…8g7x
2023-02-02 02:44:19

tony on Nostr: Step-by-Step Guide to #Nostr NIP-05 Verification on a Next.js Site w/ #DamusApp ...

Step-by-Step Guide to #Nostr NIP-05 Verification on a Next.js Site w/ #DamusApp

Create a folder called .well-known in the public folder of your #Nextjs project, then create a file named nostr.json with the following content: { "names": { "name": "hex key" } }.



If you don't know your public hex key, convert your nsub key to a hex key using damus.io/key/ and replace the placeholder text ‘hex key’ with the converted hex key in nostr.json. Don’t forget to set your name. (e.g., ‘tony’, ‘jack’)

Deploy your Next.js site and check for CORS issues using https://cors-test.codehappy.dev. You can view your nostr.json file by navigating to http://www.yourdomain.com/.well-known/nostr.json

Complete Verification in @damusapp by going to Profile > Edit > NIP-05 Verification > input the name you set in your nostr.json file, followed by an @, and then finally the domain. It should look like an email address: tony@tonygaeta.com, jack@cash.app > Save > Verified > ✔️ ⚡️ 🍻
Author Public Key
npub17hxl0pe7wtjtm0fa2rugm4kefe00j94l3pwggqqm8zea0u3fnuwqtc8g7x