Env File

# Database
DATABASE_URL=postgres://localhost/beste
REDIS_URL=redis://localhost:6379
PORT=3000
About this piece

Env File

Dotenv listing with sky keys and italic muted comments.

Usage

The import and the props worth knowing about, in one place.

import { Code12 } from "@/components/beste/piece/code12";

<Code12
  entries={[
    {
      "kind": "comment",
      "text": "# Database"
    },
    {
      "kind": "entry",
      "key": "DATABASE_URL",
      "value": "postgres://localhost/beste"
    },
    {
      "kind": "entry",
      "key": "REDIS_URL",
      "value": "redis://localhost:6379"
    },
    {
      "kind": "entry",
      "key": "PORT",
      "value": "3000"
    }
  ]}
  bordered={false}
/>

More Code pieces

View all Code
TypeError: Cannot read 'name' of undefined
greet(src/utils.ts:14:12)
handler(src/server.ts:42:8)
processRequest(src/api.ts:88:4)
{
"name":"Beste",
"active":true,
"count":42
}
greet.ts
export function greet(name: string) {
return `Hello, ${name}!`;
}
 
console.log(greet("Beste"));
const greeting = "Hello, Beste!";ts
function greet(name) {
return 'Hi ' + name;
return `Hello, ${name}!`;
}
pricing.ts
export function total(cart: Cart) {
const sum = cart.lines.reduce(add, 0)
return sum
const discount = coupon(cart, sum)
return sum - discount
}