diff --git a/App/pelagia-portal/.env.example b/App/pelagia-portal/.env.example index ea96e96..bc10979 100644 --- a/App/pelagia-portal/.env.example +++ b/App/pelagia-portal/.env.example @@ -39,4 +39,4 @@ EMAIL_FROM_NAME="Pelagia Portal" # Run the GstService/ microservice alongside the app. # Development default (localhost:3002) is used if this is unset. # Start the service with: cd GstService && npm run dev -GST_SERVICE_URL=http://localhost:3002 +GST_SERVICE_URL=http://localhost:3003 diff --git a/App/pelagia-portal/app/api/gst/captcha/route.ts b/App/pelagia-portal/app/api/gst/captcha/route.ts index d58222f..2ab6113 100644 --- a/App/pelagia-portal/app/api/gst/captcha/route.ts +++ b/App/pelagia-portal/app/api/gst/captcha/route.ts @@ -1,7 +1,7 @@ import { auth } from "@/auth"; import { NextResponse } from "next/server"; -const GST_SERVICE = process.env.GST_SERVICE_URL ?? "http://localhost:3002"; +const GST_SERVICE = process.env.GST_SERVICE_URL ?? "http://localhost:3003"; /** Proxy: load GST portal page + fetch CAPTCHA → { sessionId, captchaBase64 } */ export async function GET() { diff --git a/App/pelagia-portal/app/api/gst/route.ts b/App/pelagia-portal/app/api/gst/route.ts index 29a6d0c..ff0a0be 100644 --- a/App/pelagia-portal/app/api/gst/route.ts +++ b/App/pelagia-portal/app/api/gst/route.ts @@ -1,7 +1,7 @@ import { auth } from "@/auth"; import { NextRequest, NextResponse } from "next/server"; -const GST_SERVICE = process.env.GST_SERVICE_URL ?? "http://localhost:3002"; +const GST_SERVICE = process.env.GST_SERVICE_URL ?? "http://localhost:3003"; /** Proxy: submit GSTIN + captcha answer → taxpayer data */ export async function POST(req: NextRequest) { diff --git a/GstService/src/index.ts b/GstService/src/index.ts index 98a7a5f..7229922 100644 --- a/GstService/src/index.ts +++ b/GstService/src/index.ts @@ -1,7 +1,7 @@ import express from "express"; import { chromium, type Browser, type BrowserContext, type Page } from "playwright"; -const PORT = Number(process.env.PORT ?? 3002); +const PORT = Number(process.env.PORT ?? 3003); const SESSION_TTL_MS = 3 * 60 * 1000; // 3 min // ── Singleton browser ─────────────────────────────────────────────────────────