fix: getting shimmer app keys (#12363)

* Fix getting shimmer app keys

* Read from config
This commit is contained in:
Joe Au-Yeung
2023-11-15 00:59:32 +05:30
committed by GitHub
parent 811e655720
commit 5c3fd0993e
@@ -1,6 +1,7 @@
import { z } from "zod";
import getAppKeysFromSlug from "../../_utils/getAppKeysFromSlug";
import config from "../config.json";
const shimmerAppKeysSchema = z.object({
api_key: z.string(),
@@ -8,6 +9,6 @@ const shimmerAppKeysSchema = z.object({
});
export const getShimmerAppKeys = async () => {
const appKeys = await getAppKeysFromSlug("shimmer-video");
const appKeys = await getAppKeysFromSlug(config.slug);
return shimmerAppKeysSchema.parse(appKeys);
};