diff --git a/app/page.tsx b/app/page.tsx index 9b94531..7498c35 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -26,7 +26,7 @@ export default function Home() { // Log ENVIRONMENT from server useEffect(() => { - fetch('/agents/lit-matrix/api/env') + fetch('/agents/literature-matrix/api/env') .then((r) => r.json()) .then((d) => console.log(`ENVIRONMENT=${d.ENVIRONMENT}`)) .catch(() => {}) @@ -70,31 +70,31 @@ export default function Home() { const hasResults = sessionId && papers.length > 0 return ( -
+
{/* Test environment banner */} {process.env.NEXT_PUBLIC_ENV !== 'production' && ( -
+
TEST ENVIRONMENT
)} {/* Top bar */}
-
-
+
+
diff --git a/lib/api.ts b/lib/api.ts index d861f06..4e02d28 100644 --- a/lib/api.ts +++ b/lib/api.ts @@ -2,7 +2,7 @@ * API utility functions */ -const API_BASE_URL = '/agents/lit-matrix/api/v1' +const API_BASE_URL = '/agents/literature-matrix/api/v1' export function getApiUrl(path: string): string { return `${API_BASE_URL}${path}` diff --git a/nginx.conf b/nginx.conf index 18c785d..894bf17 100644 --- a/nginx.conf +++ b/nginx.conf @@ -4,7 +4,7 @@ server { absolute_redirect off; # All traffic goes to Next.js (includes both pages and API routes) - location /agents/lit-matrix/ { + location /agents/literature-matrix/ { proxy_pass http://127.0.0.1:3000; proxy_http_version 1.1; proxy_set_header Host $host; @@ -19,7 +19,7 @@ server { } # Next.js static assets - location /agents/lit-matrix/_next/ { + location /agents/literature-matrix/_next/ { proxy_pass http://127.0.0.1:3000; proxy_http_version 1.1; proxy_set_header Host $host; @@ -34,12 +34,12 @@ server { # Health check via Next.js API route location /health { - proxy_pass http://127.0.0.1:3000/agents/lit-matrix/api/v1; + proxy_pass http://127.0.0.1:3000/agents/literature-matrix/api/v1; proxy_http_version 1.1; } # Root -> redirect to app location = / { - return 302 /agents/lit-matrix/; + return 302 /agents/literature-matrix/; } }