mirror of
https://github.com/formbricks/formbricks.git
synced 2026-05-05 11:21:07 -05:00
a34606ab03
Co-authored-by: Matti Nannt <mail@matthiasnannt.com>
17 lines
411 B
TypeScript
17 lines
411 B
TypeScript
import "server-only";
|
|
|
|
import { unstable_cache } from "next/cache";
|
|
import { ENTERPRISE_LICENSE_KEY } from "@formbricks/lib/constants";
|
|
|
|
export const getIsEnterpriseEdition = () =>
|
|
unstable_cache(
|
|
async () => {
|
|
if (ENTERPRISE_LICENSE_KEY) {
|
|
return ENTERPRISE_LICENSE_KEY?.length > 0;
|
|
}
|
|
return false;
|
|
},
|
|
["getIsEnterpriseEdition"],
|
|
{ revalidate: 60 * 60 * 24 }
|
|
)();
|