This commit is contained in:
parent
bcfa6dab06
commit
4eed994fcb
|
|
@ -4,7 +4,10 @@
|
||||||
*/
|
*/
|
||||||
import { NextRequest, NextResponse } from "next/server";
|
import { NextRequest, NextResponse } from "next/server";
|
||||||
|
|
||||||
const BACKEND_URL = process.env.BACKEND_URL || "http://localhost:8000";
|
// Use backend internal URL if available (Railway), fallback to public URL
|
||||||
|
const BACKEND_URL = process.env.BACKEND_URL ||
|
||||||
|
process.env.NEXT_PUBLIC_API_URL ||
|
||||||
|
"http://localhost:8000";
|
||||||
|
|
||||||
export async function POST(request: NextRequest) {
|
export async function POST(request: NextRequest) {
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue