chore: disable OTP/phone-validation at signup, fix next.config rewrite env bug, clean stale .next cache

This commit is contained in:
2026-09-13 15:25:56 +05:30
parent c1de5ee7d0
commit d0472da976
2 changed files with 14 additions and 4 deletions

View File

@@ -1,12 +1,16 @@
import type { NextConfig } from "next";
// Use NEXT_PUBLIC_API_URL for local dev (http://localhost:8000),
// fall back to the Docker-internal service name for containerised deployments.
const API_BASE = process.env.NEXT_PUBLIC_API_URL || "http://backend:8000";
const nextConfig: NextConfig = {
output: "standalone",
async rewrites() {
return [
{
source: "/api/:path*",
destination: "http://backend:8000/api/:path*",
destination: `${API_BASE}/api/:path*`,
},
];
},