Skip to content

Commit 074f1c0

Browse files
Jiri LojdaJiri Lojda
authored andcommitted
Create readmeSnippets.ts for snippets in readme
- It has the advantage of ts support => enforcing all and valid config keys are present
1 parent 815bc37 commit 074f1c0

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import { Config } from "../../ConfigContext";
2+
import { InitRequestBody } from "../types/initRequestBody";
3+
4+
// Remember to update readme when you change this file.
5+
6+
export const exampleCustomElementConfig: Config = {
7+
language: "{Kontent.ai language codename}",
8+
projectId: "{Kontent.ai project ID}",
9+
algoliaAppId: "{Algolia app id}",
10+
algoliaSearchKey: "{Algolia search-only api key}",
11+
algoliaIndexName: "{Algolia index name}",
12+
slugCodename: "{Kontent.ai slug codename}",
13+
};
14+
15+
export const exampleInitRequestBody: InitRequestBody = {
16+
language: "{Kontent.ai language codename}",
17+
projectId: "{Kontent.ai project ID}",
18+
algoliaAppId: "{Algolia app id}",
19+
algoliaIndexName: "{Algolia index name}",
20+
slugCodename: "{Kontent.ai slug codename}",
21+
};

0 commit comments

Comments
 (0)