Add Next.js version to config export
This commit is contained in:
parent
2e92eef690
commit
32d39f7e67
@ -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,
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user