This commit is contained in:
Jun-te Kim 2026-01-20 23:23:09 +00:00
parent 6f4870f09e
commit 1cd96a0b79

View file

@ -1,7 +1,7 @@
export const runtime = "nodejs"; export const runtime = "nodejs";
import { NextRequest, NextResponse } from "next/server"; import { NextRequest, NextResponse } from "next/server";
import Stripe from "stripe"; import { getStripe } from "@/lib/stripe/service";
import { XeroClient, Invoice, CurrencyCode } from "xero-node"; import { XeroClient, Invoice, CurrencyCode } from "xero-node";
import { db } from "@/lib/db"; import { db } from "@/lib/db";
import { import {
@ -12,7 +12,7 @@ import {
import { eq } from "drizzle-orm"; import { eq } from "drizzle-orm";
const stripe = new Stripe(process.env.STRIPE_SECRET_KEY!); const stripe = getStripe();
export async function POST(req: NextRequest) { export async function POST(req: NextRequest) {
// -------------------------------------------------- // --------------------------------------------------