Skip to content
mdxcn is now part of Shadcn Labs. details

env

Env

Environment variables. Paste a `.env` code block: a comment above a key describes it, and a comment that says required marks it as required. For label and value rows that aren't variables, use Spec.

use it
Good for the variables a project needs, which are required, and what they do.
instead
Label/value rows that are not variables are Spec.

.env

Paste the file. A comment above a key describes it. A comment that says required marks it.

[ .env ]
  • DATABASE_URL (required)postgres://localhost:5432/appPostgres connection string.
  • SITE_URLhttps://mdxcn.devOrigin for absolute links in llms.txt
  • ANALYTICS_ID—Leave empty to turn analytics off
<Env>

```bash
# Postgres connection string. Required.
DATABASE_URL=postgres://localhost:5432/app

# Origin for absolute links in llms.txt
SITE_URL=https://mdxcn.dev

# Leave empty to turn analytics off
ANALYTICS_ID=
```

</Env>

install

command

as a list

Or write rows. Bold is required. `— note` sits under the key.

[ WORKER ]
  • QUEUE_URL (required)redis://localhost:6379jobs and retries
  • CONCURRENCY4per process
  • LOG_LEVELinfo
<Env title="WORKER">

- **QUEUE_URL**: redis://localhost:6379 — jobs and retries
- CONCURRENCY: 4 — per process
- LOG_LEVEL: info

</Env>
[ PROPS ]
PropTypeDefaultDescription
titlestring".env"Caption drawn on the top edge of the frame.
childrenMarkdown—A fenced .env, or a list: `- **KEY**: value — note` (bold is required).
vars{ name, value?, note?, required? }[]—Data form.
palette"mono" | "duo" | "multi""mono"mono is one accent plus muted. duo paints the second series with --graph-accent-2. multi cycles three accents.
cornerstring"+"Character at each corner of the frame.
frame"box" | "corners" | "rule" | "none""box"box draws the dashed border. corners keeps only the corner marks. rule draws dashed lines above and below. none drops the border and padding, and puts the title above the content.
classNamestring—Passed to the outer frame.