A social knowledge tool for researchers built on ATProto

use correct env var

+5 -2
+3 -1
src/webapp/api-client/ApiClient.ts
··· 278 278 }; 279 279 280 280 export const createServerApiClient = () => { 281 - return new ApiClient(process.env.API_BASE_URL || 'http://127.0.0.1:3000'); 281 + return new ApiClient( 282 + process.env.NEXT_PUBLIC_API_BASE_URL || 'http://127.0.0.1:3000', 283 + ); 282 284 }; 283 285 284 286 // Default client instance for backward compatibility
+2 -1
src/webapp/lib/serverAuth.ts
··· 20 20 } 21 21 22 22 // Make direct API call with cookie header for server-side 23 - const baseUrl = process.env.API_BASE_URL || 'http://127.0.0.1:3000'; 23 + const baseUrl = 24 + process.env.NEXT_PUBLIC_API_BASE_URL || 'http://127.0.0.1:3000'; 24 25 const response = await fetch(`${baseUrl}/api/users/me`, { 25 26 method: 'GET', 26 27 headers: {