feat: implement lemonsqueezy to pricing table
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user