-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create readmeSnippets.ts for snippets in readme
- It has the advantage of ts support => enforcing all and valid config keys are present
- Loading branch information
Jiri Lojda
authored and
Jiri Lojda
committed
Mar 9, 2023
1 parent
815bc37
commit 074f1c0
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { Config } from "../../ConfigContext"; | ||
import { InitRequestBody } from "../types/initRequestBody"; | ||
|
||
// Remember to update readme when you change this file. | ||
|
||
export const exampleCustomElementConfig: Config = { | ||
language: "{Kontent.ai language codename}", | ||
projectId: "{Kontent.ai project ID}", | ||
algoliaAppId: "{Algolia app id}", | ||
algoliaSearchKey: "{Algolia search-only api key}", | ||
algoliaIndexName: "{Algolia index name}", | ||
slugCodename: "{Kontent.ai slug codename}", | ||
}; | ||
|
||
export const exampleInitRequestBody: InitRequestBody = { | ||
language: "{Kontent.ai language codename}", | ||
projectId: "{Kontent.ai project ID}", | ||
algoliaAppId: "{Algolia app id}", | ||
algoliaIndexName: "{Algolia index name}", | ||
slugCodename: "{Kontent.ai slug codename}", | ||
}; |