blob: 2070e0baf7599edd6eccf10f419ebddd3a46db43 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
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;
faviconPath: string;
emojiRootPath: string;
}
|