fix docker setup

This commit is contained in:
2025-12-26 01:01:59 +01:00
parent b6cbb81388
commit d08ec10b40
9 changed files with 84 additions and 60 deletions

View File

@@ -17,7 +17,10 @@ import Button from '@/components/ui/Button';
import { ServiceFactory } from '@/lib/services/ServiceFactory';
export default async function HomePage() {
const baseUrl = process.env.NEXT_PUBLIC_API_BASE_URL || 'http://localhost:3001';
const baseUrl =
process.env.API_BASE_URL ??
process.env.NEXT_PUBLIC_API_BASE_URL ??
'http://api:3000';
const serviceFactory = new ServiceFactory(baseUrl);
const sessionService = serviceFactory.createSessionService();
const landingService = serviceFactory.createLandingService();