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

View File

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