Parallelize GitHub checks

This commit is contained in:
Sam Becker 2025-02-15 00:10:49 -06:00
parent 6fcdd2b206
commit 59650cf395

View File

@ -38,6 +38,7 @@ export default async function AdminAppInsights() {
cameras,
filmSimulations,
lenses,
codeMeta,
] = await Promise.all([
getPhotosMeta({ hidden: 'include' }),
getPhotosMeta({ hidden: 'only' }),
@ -47,6 +48,14 @@ export default async function AdminAppInsights() {
getUniqueCameras(),
getUniqueFilmSimulations(),
getUniqueLenses(),
IS_VERCEL_GIT_PROVIDER_GITHUB || IS_DEVELOPMENT
? getGitHubMetaWithFallback({
owner,
repo,
branch,
commit,
})
: undefined,
]);
const {
@ -54,15 +63,6 @@ export default async function AdminAppInsights() {
hasVercelBlobStorage,
} = APP_CONFIGURATION;
const codeMeta = IS_VERCEL_GIT_PROVIDER_GITHUB || IS_DEVELOPMENT
? await getGitHubMetaWithFallback({
owner,
repo,
branch,
commit,
})
: undefined;
return (
<AdminAppInsightsClient
codeMeta={codeMeta}