mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-27 01:36:30 +02:00
refactor: removed BACKEND_PROXY_TARGET and unified FASTAPI_BACKEND_INTERNAL_URL for both next.js rewrite and docker network issues
This commit is contained in:
parent
1abbc6021f
commit
8a8086176b
2 changed files with 4 additions and 4 deletions
|
|
@ -45,10 +45,10 @@ const nextConfig: NextConfig = {
|
|||
},
|
||||
|
||||
// Proxy /api/v1/* to the FastAPI backend. Keeps the real backend host
|
||||
// out of the client bundle. BACKEND_PROXY_TARGET is server-only.
|
||||
// out of the client bundle. FASTAPI_BACKEND_INTERNAL_URL is server-only.
|
||||
async rewrites() {
|
||||
const target =
|
||||
process.env.BACKEND_PROXY_TARGET ||
|
||||
process.env.FASTAPI_BACKEND_INTERNAL_URL ||
|
||||
process.env.NEXT_PUBLIC_FASTAPI_BACKEND_URL ||
|
||||
"http://localhost:8000";
|
||||
return [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue