feat: add authenticated share publishing APIs
This commit is contained in:
@@ -3,6 +3,7 @@ import "server-only";
|
||||
import {
|
||||
optionalEnvironmentValue,
|
||||
readFeatureEnvironment,
|
||||
requiredEnvironmentValue,
|
||||
requiredEnvironmentUrl,
|
||||
} from "@/lib/config/environment";
|
||||
|
||||
@@ -32,6 +33,10 @@ export function getDiscordServerConfig() {
|
||||
};
|
||||
}
|
||||
|
||||
export function getShareBotSecret() {
|
||||
return requiredEnvironmentValue("SHARE_BOT_SECRET");
|
||||
}
|
||||
|
||||
export function getYoutubeFollowerConfig() {
|
||||
const config = readFeatureEnvironment("YouTube follower counts", [
|
||||
"YOUTUBE_API_KEY",
|
||||
|
||||
Reference in New Issue
Block a user