link-stack/apps/leafcutter/app/_lib/utils.ts

5 lines
177 B
TypeScript
Raw Normal View History

2023-06-20 07:49:52 +00:00
import { GetServerSidePropsContext } from "next";
export const getEmbedded = (context: GetServerSidePropsContext) =>
context.req.headers["x-leafcutter-embedded"] === "true";