Skip to content

Commit

Permalink
feat: link to contentful env in /_params
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Kwong committed Feb 4, 2025
1 parent 97da2a4 commit 7e1e6d0
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/app/%5Fparams/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const ParamsPage = () => (
(
<Link
href="https://vercel.com/docs/edge-network/regions#region-list"
rel="noreferrer"
target="_blank"
>
region list
Expand All @@ -54,8 +55,18 @@ const ParamsPage = () => (
<DataList.Item>
<DataList.Label>Contentful ENV</DataList.Label>
<DataList.Value>
<Code className={styles.codeValue} variant="ghost">
{process.env.CONTENTFUL_ENVIRONMENT}
<Code asChild className={styles.codeValue} variant="ghost">
<Link
rel="noreferrer"
target="_blank"
href={
process.env.CONTENTFUL_SPACE_ID &&
process.env.CONTENTFUL_ENVIRONMENT &&
`https://app.contentful.com/spaces/${process.env.CONTENTFUL_SPACE_ID}/environments/${process.env.CONTENTFUL_ENVIRONMENT}`
}
>
{process.env.CONTENTFUL_ENVIRONMENT}
</Link>
</Code>
</DataList.Value>
</DataList.Item>
Expand Down

0 comments on commit 7e1e6d0

Please sign in to comment.