diff --git a/README.md b/README.md index 162f299..8386b6f 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,8 @@ services: networks: - internal-network restart: always + ports: + - "3000:3000" volumes: - .env.frontend:/app/.env.production:ro diff --git a/web/next.config.ts b/web/next.config.ts index f2bd3c3..3a0d4e6 100644 --- a/web/next.config.ts +++ b/web/next.config.ts @@ -21,7 +21,6 @@ const nextConfig: NextConfig = { ], }, async rewrites() { - console.log('Using development API base URL:', BACKEND_URL) return [ { source: '/api/:path*', diff --git a/web/src/api/client.ts b/web/src/api/client.ts index 5eb51ab..db9afcb 100644 --- a/web/src/api/client.ts +++ b/web/src/api/client.ts @@ -3,6 +3,8 @@ import { camelToSnakeObj, snakeToCamelObj } from 'field-conv' export const BACKEND_URL = process.env.BACKEND_URL || 'http://neo-blog-backend:8888' +console.info(`Using backend URL: ${BACKEND_URL}`) + const isServer = typeof window === 'undefined' const API_SUFFIX = '/api/v1'