From 81f39bc61b3f4f8f5103805c2b503d7510ae575d Mon Sep 17 00:00:00 2001 From: Dimitri Mitropoulos Date: Tue, 17 Sep 2024 10:59:49 -0400 Subject: [PATCH] hotfix docs --- .../using-environment-variables.mdx | 34 ++++++++----------- 1 file changed, 15 insertions(+), 19 deletions(-) diff --git a/docs/repo-docs/crafting-your-repository/using-environment-variables.mdx b/docs/repo-docs/crafting-your-repository/using-environment-variables.mdx index aa3015494b854..dd244a4baa668 100644 --- a/docs/repo-docs/crafting-your-repository/using-environment-variables.mdx +++ b/docs/repo-docs/crafting-your-repository/using-environment-variables.mdx @@ -6,7 +6,6 @@ description: Learn how to handle environments for your applications. import { Callout } from '#/components/callout'; import { Tabs, Tab } from '#/components/tabs'; import { Accordion, Accordions } from '#/components/accordion'; -import { frameworks } from '@turbo/types'; Environment variable inputs are a vital part of your applications that you'll need to account for in your Turborepo configuration. @@ -57,24 +56,21 @@ Turborepo needs to be aware of your environment variables to account for changes Turborepo automatically adds prefix wildcards to your [`env`](/repo/docs/reference/configuration#env) key for common frameworks. If you're using one of the frameworks below in a package, you don't need to specify environment variables with these prefixes: - - - - - - - - - {frameworks.map(({ name, envWildcards }) => ( - - - - - ))} - -
Framework - env wildcards -
{name}{envWildcards.map((w) => {w}).join(', ')}
+| Framework | `env` wildcard | +| ---------------- | ------------------- | +| Astro | `PUBLIC_*` | +| Blitz | `NEXT_PUBLIC_*` | +| Create React App | `REACT_APP_*` | +| Gatsby | `GATSBY_*` | +| Next.js | `NEXT_PUBLIC_*` | +| Nitro | `NITRO_*` | +| Nuxt.js | `NUXT_*`, `NITRO_*` | +| RedwoodJS | `REDWOOD_ENV_*` | +| Sanity Studio | `SANITY_STUDIO_*` | +| Solid | `VITE_*` | +| SvelteKit | `VITE_*` | +| Vite | `VITE_*` | +| Vue | `VUE_APP_*` | Framework inference is per-package.