From 7918f04059826320a12729318a82a4607ac1b4ac Mon Sep 17 00:00:00 2001 From: Snowykami Date: Sat, 26 Jul 2025 10:30:36 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=EF=B8=8F=20feat:=20=E5=9C=A8=E5=89=8D?= =?UTF-8?q?=E7=AB=AF=E6=9C=8D=E5=8A=A1=E4=B8=AD=E6=B7=BB=E5=8A=A0=E7=AB=AF?= =?UTF-8?q?=E5=8F=A3=E6=98=A0=E5=B0=84=EF=BC=8C=E5=B9=B6=E5=9C=A8API?= =?UTF-8?q?=E5=AE=A2=E6=88=B7=E7=AB=AF=E4=B8=AD=E8=AE=B0=E5=BD=95=E5=90=8E?= =?UTF-8?q?=E7=AB=AFURL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 ++ web/next.config.ts | 1 - web/src/api/client.ts | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) 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'