From cf1acb71078156795d2122a11262468581b3879d Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 7 Feb 2026 23:14:05 +0000 Subject: [PATCH 1/3] Initial plan From 8f425d331550880ed7963d0530b6f57a3ebebda7 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 7 Feb 2026 23:16:37 +0000 Subject: [PATCH 2/3] fix: add metadataBase to resolve OG/Twitter image URLs Co-authored-by: dawidope <1847552+dawidope@users.noreply.github.com> --- .env.local.example | 4 ++++ src/app/layout.tsx | 3 +++ 2 files changed, 7 insertions(+) diff --git a/.env.local.example b/.env.local.example index 5e11022..ea33c87 100644 --- a/.env.local.example +++ b/.env.local.example @@ -4,6 +4,10 @@ # Your deAPI API token (get it from https://deapi.ai) DEAPI_API_TOKEN=your_token_here +# Site URL for metadata (used for OG and Twitter images) +# Optional: defaults to https://github.com/deapi-ai/deapi-tester +# NEXT_PUBLIC_SITE_URL=https://your-domain.com + # API URL (default: https://api.deapi.ai/api/v1/client) DEAPI_API_URL=https://api.deapi.ai/api/v1/client diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 41f0118..fbd4a52 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -3,6 +3,9 @@ import './globals.css'; import { Providers } from '@/components/Providers'; export const metadata: Metadata = { + metadataBase: new URL( + process.env.NEXT_PUBLIC_SITE_URL || 'https://github.com/deapi-ai/deapi-tester' + ), title: 'deAPI Tester — Test AI Inference Endpoints', description: 'Local developer tool for testing deAPI.ai endpoints. Generate images, videos, audio and more with dynamic forms, async job tracking, and result preview.', From 56e76559a0c291b4a86feb38760d2537fd5dc5e3 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 7 Feb 2026 23:17:50 +0000 Subject: [PATCH 3/3] fix: use localhost:3000 as default metadataBase for local dev Co-authored-by: dawidope <1847552+dawidope@users.noreply.github.com> --- .env.local.example | 3 ++- src/app/layout.tsx | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.env.local.example b/.env.local.example index ea33c87..be442f5 100644 --- a/.env.local.example +++ b/.env.local.example @@ -5,7 +5,8 @@ DEAPI_API_TOKEN=your_token_here # Site URL for metadata (used for OG and Twitter images) -# Optional: defaults to https://github.com/deapi-ai/deapi-tester +# Optional: defaults to http://localhost:3000 +# Set this if deploying to production (e.g., https://your-domain.com) # NEXT_PUBLIC_SITE_URL=https://your-domain.com # API URL (default: https://api.deapi.ai/api/v1/client) diff --git a/src/app/layout.tsx b/src/app/layout.tsx index fbd4a52..a836226 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -4,7 +4,7 @@ import { Providers } from '@/components/Providers'; export const metadata: Metadata = { metadataBase: new URL( - process.env.NEXT_PUBLIC_SITE_URL || 'https://github.com/deapi-ai/deapi-tester' + process.env.NEXT_PUBLIC_SITE_URL || 'http://localhost:3000' ), title: 'deAPI Tester — Test AI Inference Endpoints', description: