feat: implement lemonsqueezy to pricing table

This commit is contained in:
Karrix
2024-01-21 15:47:47 +08:00
committed by BennyKok
parent 931b4e144a
commit 9cbf0760a0
6 changed files with 163 additions and 193 deletions
+12
View File
@@ -0,0 +1,12 @@
"use server";
import { LemonSqueezy } from "@lemonsqueezy/lemonsqueezy.js";
import "server-only";
const ls = new LemonSqueezy(process.env.LEMONSQUEEZY_API_KEY || "");
export async function getPricing() {
const products = await ls.getProducts();
return products;
}