App directory refactoring
This commit is contained in:
parent
a53a26f4c0
commit
b312a8c862
153 changed files with 1532 additions and 1447 deletions
4
apps/leafcutter/app/_lib/utils.ts
Normal file
4
apps/leafcutter/app/_lib/utils.ts
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
import { GetServerSidePropsContext } from "next";
|
||||
|
||||
export const getEmbedded = (context: GetServerSidePropsContext) =>
|
||||
context.req.headers["x-leafcutter-embedded"] === "true";
|
||||
Loading…
Add table
Add a link
Reference in a new issue