# Disable Umbraco AI Copilot in live cloud environment

**URL:** <https://forum.umbraco.com/t/disable-umbraco-ai-copilot-in-live-cloud-environment/8679>\
**Category:** Questions\
**Tags:** umbraco-cloud, umbraco-ai\
**Created:** [October 21, 2026, 9:01am UTC](https://forum.umbraco.com/t/disable-umbraco-ai-copilot-in-live-cloud-environment/8679 "2026-10-21T09:01:31Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![mistyn8](https://forum.umbraco.com/user_avatar/forum.umbraco.com/mistyn8/32/671_2.png) [@mistyn8](https://forum.umbraco.com/u/mistyn8)\
**Post date:** [October 21, 2026, 1:44pm UTC](https://forum.umbraco.com/t/disable-umbraco-ai-copilot-in-live-cloud-environment/8679/7 "2026-10-21T13:44:26Z")

</div>

just a thought… though depends if you are running staging in debug vs release…

```auto
<ItemGroup>
  <PackageReference Include="Umbraco.AI.Agent.Copilot" Condition="'$(Configuration)' == 'Debug'" />
</ItemGroup>

```

or if you are passing in the environment to the build process..

```auto
dotnet publish "%DEPLOYMENT_SOURCE%\Project\Project.Web.csproj" -c Release -r win-x64 -f net10.0 -p:PublishSingleFile=false -p:EnvironmentName=%ASPNETCORE_ENVIRONMENT%

```

```auto
<ItemGroup>
  <!-- Exclude the package if the environment is Production -->
  <PackageReference Include="Umbraco.AI.Agent.Copilot" Condition=" '$(EnvironmentName)' != 'Production'" />
</ItemGroup>

```

---

_[View the full topic](https://forum.umbraco.com/t/disable-umbraco-ai-copilot-in-live-cloud-environment/8679)._
