Add url/commit details to config page
This commit is contained in:
parent
0a316a0a8c
commit
5e8bfef5cf
@ -71,6 +71,8 @@ export default function SiteChecklistClient({
|
|||||||
simplifiedView,
|
simplifiedView,
|
||||||
isTestingConnections,
|
isTestingConnections,
|
||||||
secret,
|
secret,
|
||||||
|
baseUrl,
|
||||||
|
commitSha,
|
||||||
}: ConfigChecklistStatus &
|
}: ConfigChecklistStatus &
|
||||||
Partial<Awaited<ReturnType<typeof testConnectionsAction>>> & {
|
Partial<Awaited<ReturnType<typeof testConnectionsAction>>> & {
|
||||||
simplifiedView?: boolean
|
simplifiedView?: boolean
|
||||||
@ -506,9 +508,16 @@ export default function SiteChecklistClient({
|
|||||||
</ChecklistRow>
|
</ChecklistRow>
|
||||||
</Checklist>
|
</Checklist>
|
||||||
</>}
|
</>}
|
||||||
<div className="px-11 text-dim">
|
<div className="px-11 space-y-5 pt-0.5">
|
||||||
Changes to environment variables require a redeploy
|
<div>
|
||||||
or reboot of local dev server
|
Changes to environment variables require a redeploy
|
||||||
|
or reboot of local dev server
|
||||||
|
</div>
|
||||||
|
{!simplifiedView &&
|
||||||
|
<div className="text-dim">
|
||||||
|
<div>Base Url: {baseUrl || 'Not Defined'}</div>
|
||||||
|
<div>Commit: {commitSha || 'Not Found'}</div>
|
||||||
|
</div>}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
@ -7,12 +7,18 @@ import { makeUrlAbsolute, shortenUrl } from '@/utility/url';
|
|||||||
export const SHOULD_PREFETCH_ALL_LINKS: boolean | undefined = undefined;
|
export const SHOULD_PREFETCH_ALL_LINKS: boolean | undefined = undefined;
|
||||||
export const SHOULD_DEBUG_SQL = false;
|
export const SHOULD_DEBUG_SQL = false;
|
||||||
|
|
||||||
// META / DOMAINS
|
// META / SOURCE / DOMAINS
|
||||||
|
|
||||||
export const SITE_TITLE =
|
export const SITE_TITLE =
|
||||||
process.env.NEXT_PUBLIC_SITE_TITLE ||
|
process.env.NEXT_PUBLIC_SITE_TITLE ||
|
||||||
'Photo Blog';
|
'Photo Blog';
|
||||||
|
|
||||||
|
// SOURCE
|
||||||
|
export const VERCEL_COMMIT_MESSAGE =
|
||||||
|
process.env.NEXT_PUBLIC_VERCEL_GIT_COMMIT_MESSAGE;
|
||||||
|
export const VERCEL_COMMIT_SHA =
|
||||||
|
process.env.NEXT_PUBLIC_VERCEL_GIT_COMMIT_SHA;
|
||||||
|
|
||||||
const VERCEL_ENV = process.env.NEXT_PUBLIC_VERCEL_ENV;
|
const VERCEL_ENV = process.env.NEXT_PUBLIC_VERCEL_ENV;
|
||||||
const VERCEL_PRODUCTION_URL = process.env.VERCEL_PROJECT_PRODUCTION_URL;
|
const VERCEL_PRODUCTION_URL = process.env.VERCEL_PROJECT_PRODUCTION_URL;
|
||||||
const VERCEL_DEPLOYMENT_URL = process.env.NEXT_PUBLIC_VERCEL_URL;
|
const VERCEL_DEPLOYMENT_URL = process.env.NEXT_PUBLIC_VERCEL_URL;
|
||||||
@ -199,6 +205,9 @@ export const CONFIG_CHECKLIST_STATUS = {
|
|||||||
isOgTextBottomAligned: OG_TEXT_BOTTOM_ALIGNMENT,
|
isOgTextBottomAligned: OG_TEXT_BOTTOM_ALIGNMENT,
|
||||||
gridAspectRatio: GRID_ASPECT_RATIO,
|
gridAspectRatio: GRID_ASPECT_RATIO,
|
||||||
hasGridAspectRatio: Boolean(process.env.NEXT_PUBLIC_GRID_ASPECT_RATIO),
|
hasGridAspectRatio: Boolean(process.env.NEXT_PUBLIC_GRID_ASPECT_RATIO),
|
||||||
|
baseUrl: BASE_URL,
|
||||||
|
commitMessage: VERCEL_COMMIT_MESSAGE,
|
||||||
|
commitSha: VERCEL_COMMIT_SHA,
|
||||||
};
|
};
|
||||||
|
|
||||||
export type ConfigChecklistStatus = typeof CONFIG_CHECKLIST_STATUS;
|
export type ConfigChecklistStatus = typeof CONFIG_CHECKLIST_STATUS;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user