fix: update backendBaseUrl in next.config.ts to prioritize NEXT_API_BASE_URL
This commit is contained in:
@@ -173,7 +173,7 @@ _web-build-spa:
|
|||||||
@cd $(WEB_DIR) && $(PNPM) build:sdk && $(PNPM) build
|
@cd $(WEB_DIR) && $(PNPM) build:sdk && $(PNPM) build
|
||||||
|
|
||||||
_web-dev:
|
_web-dev:
|
||||||
@cd $(WEB_DIR) && NEXT_PUBLIC_API_BASE_URL="$(DEV_API_BASE_URL)" $(PNPM) dev
|
@cd $(WEB_DIR) && NEXT_PUBLIC_API_BASE_URL="" NEXT_API_BASE_URL="$(DEV_API_BASE_URL)" $(PNPM) dev
|
||||||
|
|
||||||
_prepare-dist:
|
_prepare-dist:
|
||||||
@mkdir -p $(DIST_DIR)
|
@mkdir -p $(DIST_DIR)
|
||||||
|
|||||||
+3
-1
@@ -2,7 +2,9 @@ import type { NextConfig } from "next"
|
|||||||
import { PHASE_DEVELOPMENT_SERVER } from "next/constants"
|
import { PHASE_DEVELOPMENT_SERVER } from "next/constants"
|
||||||
|
|
||||||
const backendBaseUrl =
|
const backendBaseUrl =
|
||||||
process.env.NEXT_PUBLIC_API_BASE_URL?.trim() || "http://127.0.0.1:8083"
|
process.env.NEXT_API_BASE_URL?.trim() ||
|
||||||
|
process.env.NEXT_PUBLIC_API_BASE_URL?.trim() ||
|
||||||
|
"http://127.0.0.1:8083"
|
||||||
const productionBasePath = ""
|
const productionBasePath = ""
|
||||||
|
|
||||||
export default function nextConfig(phase: string): NextConfig {
|
export default function nextConfig(phase: string): NextConfig {
|
||||||
|
|||||||
Reference in New Issue
Block a user