fix: getting shimmer app keys (#12363)

* Fix getting shimmer app keys

* Read from config
This commit is contained in:
Joe Au-Yeung 2023-11-14 14:29:32 -05:00 committed by GitHub
parent 811e655720
commit 5c3fd0993e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
};