diff options
author | eug-vs <eugene@eug-vs.xyz> | 2022-10-23 01:30:18 +0300 |
---|---|---|
committer | eug-vs <eugene@eug-vs.xyz> | 2022-10-23 01:30:18 +0300 |
commit | ad393f4243a10f9a5ab0ecd8afa5e6c07a088f5d (patch) | |
tree | 8f5758b8c1509269cae297a80f1bbfb10b68fd03 /src/lib/types.ts | |
parent | 21a182985b7fa0c55691d5595b807dfcce2f4631 (diff) | |
download | benzin-next-ad393f4243a10f9a5ab0ecd8afa5e6c07a088f5d.tar.gz |
feat: add pre-render hook
Diffstat (limited to 'src/lib/types.ts')
-rw-r--r-- | src/lib/types.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/types.ts b/src/lib/types.ts index ed2566f..bce6b36 100644 --- a/src/lib/types.ts +++ b/src/lib/types.ts @@ -18,4 +18,8 @@ export interface BenzinConfig { emojiRoot: string; css: string; } + + hooks: { + preRender: (path: string[], data: string, adapter: Adapter, cdn: string) => Promise<string>; + } } |