fix(gst): correct microservice default port and captcha field name
Default port changed 3002 → 3003 in the GstService and both proxy routes. The vendor-form was reading `captchaB64` from the API response but the GstService returns `captchaBase64`, so the CAPTCHA image was never displayed. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
f372fae953
commit
2e6678f829
4 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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 ─────────────────────────────────────────────────────────
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue