diff --git a/crates/turborepo-lib/src/framework.rs b/crates/turborepo-lib/src/framework.rs index 830abb5e6fa6e..85d6aefd4d0b2 100644 --- a/crates/turborepo-lib/src/framework.rs +++ b/crates/turborepo-lib/src/framework.rs @@ -31,7 +31,7 @@ impl Framework { } } -static FRAMEWORKS: OnceLock<[Framework; 12]> = OnceLock::new(); +static FRAMEWORKS: OnceLock<[Framework; 13]> = OnceLock::new(); fn get_frameworks() -> &'static [Framework] { FRAMEWORKS.get_or_init(|| { @@ -100,9 +100,17 @@ fn get_frameworks() -> &'static [Framework] { dependencies: vec!["react-scripts", "react-dev-utils"], }, }, + Framework { + slug: "nitro", + env_wildcards: vec!["NITRO_*"], + dependency_match: Matcher { + strategy: Strategy::Some, + dependencies: vec!["nitropack", "nitropack-nightly"], + }, + }, Framework { slug: "nuxtjs", - env_wildcards: vec!["NUXT_*"], + env_wildcards: vec!["NUXT_*", "NITRO_*"], dependency_match: Matcher { strategy: Strategy::Some, dependencies: vec!["nuxt", "nuxt-edge", "nuxt3", "nuxt3-edge"], 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 c85d1eec27ee7..b63163de0c476 100644 --- a/docs/repo-docs/crafting-your-repository/using-environment-variables.mdx +++ b/docs/repo-docs/crafting-your-repository/using-environment-variables.mdx @@ -63,7 +63,8 @@ Turborepo automatically adds prefix wildcards to your [`env`](/repo/docs/referen | Create React App | `REACT_APP_*` | | Gatsby | `GATSBY_*` | | Next.js | `NEXT_PUBLIC_*` | -| Nuxt.js | `NUXT_*` | +| Nitro | `NITRO_*` | +| Nuxt.js | `NUXT_*`, `NITRO_*`| | RedwoodJS | `REDWOOD_ENV_*` | | Sanity Studio | `SANITY_STUDIO_*` | | Solid | `VITE_*` |