Temporarily log domain environment variables
This commit is contained in:
parent
fa025dbf6b
commit
81be076f6e
@ -27,7 +27,7 @@ import AdminGrid from '@/admin/AdminGrid';
|
|||||||
import DeleteButton from '@/admin/DeleteButton';
|
import DeleteButton from '@/admin/DeleteButton';
|
||||||
import EditButton from '@/admin/EditButton';
|
import EditButton from '@/admin/EditButton';
|
||||||
import StorageUrls from '@/admin/StorageUrls';
|
import StorageUrls from '@/admin/StorageUrls';
|
||||||
import { PRO_MODE_ENABLED } from '@/site/config';
|
import { DOMAIN_META_TO_LOG, PRO_MODE_ENABLED } from '@/site/config';
|
||||||
import SubmitButtonWithStatus from '@/components/SubmitButtonWithStatus';
|
import SubmitButtonWithStatus from '@/components/SubmitButtonWithStatus';
|
||||||
import IconGrSync from '@/site/IconGrSync';
|
import IconGrSync from '@/site/IconGrSync';
|
||||||
|
|
||||||
@ -50,6 +50,8 @@ export default async function AdminPhotosPage({
|
|||||||
|
|
||||||
const showMorePhotos = count > photos.length;
|
const showMorePhotos = count > photos.length;
|
||||||
|
|
||||||
|
console.log(DOMAIN_META_TO_LOG);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<SiteGrid
|
<SiteGrid
|
||||||
contentMain={
|
contentMain={
|
||||||
|
|||||||
@ -17,6 +17,23 @@ const SITE_DOMAIN =
|
|||||||
process.env.NEXT_PUBLIC_SITE_DOMAIN ||
|
process.env.NEXT_PUBLIC_SITE_DOMAIN ||
|
||||||
VERCEL_URL;
|
VERCEL_URL;
|
||||||
|
|
||||||
|
export const DOMAIN_META_TO_LOG = {
|
||||||
|
vercel: {
|
||||||
|
VERCEL_URL: process.env.VERCEL_URL,
|
||||||
|
VERCEL_BRANCH_URL: process.env.VERCEL_BRANCH_URL,
|
||||||
|
VERCEL_REGION: process.env.VERCEL_REGION,
|
||||||
|
NEXT_PUBLIC_VERCEL_URL: process.env.NEXT_PUBLIC_VERCEL_URL,
|
||||||
|
NEXT_PUBLIC_VERCEL_BRANCH_URL: process.env.NEXT_PUBLIC_VERCEL_BRANCH_URL,
|
||||||
|
},
|
||||||
|
app: {
|
||||||
|
VERCEL_BRANCH_URL,
|
||||||
|
VERCEL_BRANCH,
|
||||||
|
VERCEL_URL,
|
||||||
|
PUBLIC_SITE_DOMAIN: process.env.NEXT_PUBLIC_SITE_DOMAIN,
|
||||||
|
SITE_DOMAIN,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
const SITE_DOMAIN_SHORT = shortenUrl(SITE_DOMAIN);
|
const SITE_DOMAIN_SHORT = shortenUrl(SITE_DOMAIN);
|
||||||
|
|
||||||
export const SITE_DOMAIN_OR_TITLE =
|
export const SITE_DOMAIN_OR_TITLE =
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user