From 9cda0ff20a6a9bb8e2b1a3b0b966c5cf57738f79 Mon Sep 17 00:00:00 2001 From: mlogclub Date: Tue, 14 Apr 2026 13:48:10 +0800 Subject: [PATCH] fix: set default backendBaseUrl in next.config.ts and remove .env.development from .gitignore --- web/next.config.ts | 2 +- widget/.env.development | 1 - widget/.gitignore | 1 - widget/next.config.ts | 2 +- 4 files changed, 2 insertions(+), 4 deletions(-) delete mode 100644 widget/.env.development diff --git a/web/next.config.ts b/web/next.config.ts index 36bd245..e26fc7f 100644 --- a/web/next.config.ts +++ b/web/next.config.ts @@ -2,7 +2,7 @@ import type { NextConfig } from "next" import { PHASE_DEVELOPMENT_SERVER } from "next/constants" const backendBaseUrl = - process.env.NEXT_PUBLIC_API_BASE_URL?.trim() || "" + process.env.NEXT_PUBLIC_API_BASE_URL?.trim() || "http://127.0.0.1:8083" export default function nextConfig(phase: string): NextConfig { const config: NextConfig = { diff --git a/widget/.env.development b/widget/.env.development deleted file mode 100644 index c7ec9df..0000000 --- a/widget/.env.development +++ /dev/null @@ -1 +0,0 @@ -NEXT_PUBLIC_API_BASE_URL=http://127.0.0.1:8083 \ No newline at end of file diff --git a/widget/.gitignore b/widget/.gitignore index 9769b99..7b8da95 100644 --- a/widget/.gitignore +++ b/widget/.gitignore @@ -33,7 +33,6 @@ yarn-error.log* # env files (can opt-in for committing if needed) .env* !.env.example -!.env.development # vercel .vercel diff --git a/widget/next.config.ts b/widget/next.config.ts index ab4cf2c..712ae55 100644 --- a/widget/next.config.ts +++ b/widget/next.config.ts @@ -2,7 +2,7 @@ import type { NextConfig } from "next" import { PHASE_DEVELOPMENT_SERVER } from "next/constants" const backendBaseUrl = - process.env.NEXT_PUBLIC_API_BASE_URL?.trim() || "" + process.env.NEXT_PUBLIC_API_BASE_URL?.trim() || "http://127.0.0.1:8083" export default function nextConfig(phase: string): NextConfig { if (phase === PHASE_DEVELOPMENT_SERVER) {