fix: set default backendBaseUrl in next.config.ts and remove .env.development from .gitignore

This commit is contained in:
mlogclub
2026-04-14 13:48:10 +08:00
parent 794a38b5cb
commit 9cda0ff20a
4 changed files with 2 additions and 4 deletions
+1 -1
View File
@@ -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 = {
-1
View File
@@ -1 +0,0 @@
NEXT_PUBLIC_API_BASE_URL=http://127.0.0.1:8083
-1
View File
@@ -33,7 +33,6 @@ yarn-error.log*
# env files (can opt-in for committing if needed)
.env*
!.env.example
!.env.development
# vercel
.vercel
+1 -1
View File
@@ -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) {