Mobile API

Add:
- app/api/mobile/profile/[id]

Fix:
- app/api/mobile/profile/route: clear console

Middle:
Fix:
- console DB_Url

### No Issue
This commit is contained in:
2025-08-25 17:03:35 +08:00
parent 99ba5b8e90
commit b9e92446ea
3 changed files with 102 additions and 2 deletions

View File

@@ -59,6 +59,8 @@ export const middleware = async (req: NextRequest) => {
const { pathname } = req.nextUrl;
const apiBaseUrl = new URL(req.url).origin || process.env.NEXT_PUBLIC_API_URL;
const dbUrl = process.env.DATABASE_URL;
console.log("DATABASE_URL >>", dbUrl);
// Handle CORS preflight
const corsResponse = handleCors(req);