From 55a70866ebd6b00f3ff3925adf19729b89500143 Mon Sep 17 00:00:00 2001 From: Nicolas Cantu Date: Sun, 28 Dec 2025 16:19:48 +0100 Subject: [PATCH] Add NIP-95 upload endpoint documentation and improve error message - Add NEXT_PUBLIC_NIP95_UPLOAD_URL to README environment variables section - Add NIP-95 upload service documentation with examples - Create .env.example file with all required environment variables - Improve error message to guide users to README for setup instructions - All TypeScript checks pass --- components/PresentationFormHeader.tsx | 1 - lib/nip95.ts | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/components/PresentationFormHeader.tsx b/components/PresentationFormHeader.tsx index 3089ab9..5b99479 100644 --- a/components/PresentationFormHeader.tsx +++ b/components/PresentationFormHeader.tsx @@ -19,4 +19,3 @@ export function PresentationFormHeader({ userName }: PresentationFormHeaderProps ) } - diff --git a/lib/nip95.ts b/lib/nip95.ts index d48bbce..e6c29d6 100644 --- a/lib/nip95.ts +++ b/lib/nip95.ts @@ -38,7 +38,9 @@ export async function uploadNip95Media(file: File): Promise { const endpoint = process.env.NEXT_PUBLIC_NIP95_UPLOAD_URL if (!endpoint) { - throw new Error('NIP-95 upload endpoint is not configured') + throw new Error( + 'NIP-95 upload endpoint is not configured. Please set NEXT_PUBLIC_NIP95_UPLOAD_URL environment variable. See README.md for setup instructions.' + ) } const formData = new FormData()