blob: ed2566f5cabebce994ce047aa476cca86a735019 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
import { GetStaticPathsResult } from 'next';
/* Collection of methods to fetch data & metadata from CDN */
export interface Adapter {
getStaticMarkdownPaths: (cdn: string) => Promise<GetStaticPathsResult['paths']>;
getMarkdownSource: (cdn: string, path: string[]) => Promise<string>;
getEmojiFileNames: (cdn: string, emojiRootPath: string) => Promise<string[]>;
}
export interface BenzinConfig {
CDN: string;
adapter: Adapter;
title: string;
paths: {
favicon: string;
logo: string;
emojiRoot: string;
css: string;
}
}
|