Parallelize GitHub checks
This commit is contained in:
parent
6fcdd2b206
commit
59650cf395
@ -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}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user