Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,14 @@ export default withNextra({
reactStrictMode: true,
// No metadataBase / hard-coded site URL here on purpose: the public domain is
// configured in the deploy dashboard (Vercel), never committed to this repo.
async headers() {
return [
{
// NIP-05 requires the identifier file to be readable cross-origin so
// web clients can verify name@domain -> pubkey mappings.
source: '/.well-known/nostr.json',
headers: [{ key: 'Access-Control-Allow-Origin', value: '*' }],
},
]
},
})
6 changes: 6 additions & 0 deletions public/.well-known/nostr.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"names": {
"_": "3e294d2fd339bb16a5403a86e3664947dd408c4d87a0066524f8a573ae53ca8e",
"sepehr": "3e294d2fd339bb16a5403a86e3664947dd408c4d87a0066524f8a573ae53ca8e"
}
}
Loading