Signed-off-by: Traxus <shyidx@gmail.com>

This commit is contained in:
Traxus 2023-04-21 21:40:24 -04:00
parent 3dffa9d082
commit 7f38771b8c

View File

@ -67,7 +67,7 @@ export const getStaticPaths: GetStaticPaths = async () => {
//const posts = await getAllBlogPostsSlugs()
async function postsSlugsJsonFromSource() : any {
async function postsSlugsJsonFromSource() : Promise<any> {
let postsSlugsJson = {};
if (process.env.NEXT_PUBLIC_DATOCMS_BYPASS_TYPE === "local_json") {
postsSlugsJson = await getAllBlogPostsSlugsFromSource();
@ -114,7 +114,7 @@ export const getStaticProps: GetStaticProps = async (
)
*/
async function getRelatedBlogPostsFromSource() {
async function getRelatedBlogPostsFromSource() : Promise<any> {
let relatedBlogPosts = {};