---
title: 'env'
sidebar:
  order: 10
  title: env
---

Parent: [main.js|ts configuration](./main-config.mdx)

Type: `(config: { [key: string]: string }) => { [key: string]: string }`

Defines custom Storybook [environment variables](../../configure/environment-variables.mdx#using-storybook-configuration).

{/* prettier-ignore-start */}

<CodeSnippets path="main-config-env.md" />

{/* prettier-ignore-end */}
