Add Next.js version to config export

This commit is contained in:
Sam Becker 2025-11-14 12:06:39 -08:00
parent 2e92eef690
commit 32d39f7e67
2 changed files with 4 additions and 3 deletions

View File

@ -10,8 +10,7 @@ import {
} from '@/photo/query';
import AdminAppInsightsClient from './AdminAppInsightsClient';
import { getAllInsights, getGitHubMetaForCurrentApp } from '.';
import { USED_DEPRECATED_ENV_VARS } from '@/app/config';
import { dependencies } from '../../../package.json';
import { APP_CONFIGURATION, USED_DEPRECATED_ENV_VARS } from '@/app/config';
export default async function AdminAppInsights() {
const [
@ -43,7 +42,7 @@ export default async function AdminAppInsights() {
return (
<AdminAppInsightsClient
codeMeta={codeMeta}
nextVersion={dependencies.next}
nextVersion={APP_CONFIGURATION.nextVersion}
insights={getAllInsights({
codeMeta,
photosCount,

View File

@ -11,6 +11,7 @@ import {
import { getNavSortControlFromString, getSortByFromString } from '@/photo/sort';
import { parseChromaCutoff, parseStartingHue } from '@/photo/color/sort';
import { parseSocialKeysFromString } from '@/social';
import { dependencies } from '../../package.json';
// HARD-CODED GLOBAL CONFIGURATION
@ -524,6 +525,7 @@ export const APP_CONFIGURATION = {
areAdminDebugToolsEnabled: ADMIN_DEBUG_TOOLS_ENABLED,
isAdminSqlDebugEnabled: ADMIN_SQL_DEBUG_ENABLED,
// Misc
nextVersion: dependencies.next,
baseUrl: BASE_URL,
baseUrlShare: BASE_URL_SHARE,
commitSha: VERCEL_GIT_COMMIT_SHA_SHORT,