5 lines
177 B
TypeScript
5 lines
177 B
TypeScript
|
|
import { GetServerSidePropsContext } from "next";
|
||
|
|
|
||
|
|
export const getEmbedded = (context: GetServerSidePropsContext) =>
|
||
|
|
context.req.headers["x-leafcutter-embedded"] === "true";
|