import { getServerEnvironment } from "@/lib/env";
import { contactProviders } from "@/lib/contact-providers";
import { handleQuickApply } from "@/lib/quick-apply-handler";
export const runtime = "nodejs";
export const maxDuration = 30;
export async function POST(request: Request) {
  const env = getServerEnvironment();
  return handleQuickApply(
    request,
    contactProviders(env, new URL(request.url).origin, "quick-apply"),
  );
}
