Skip to content

Commit 118df9e

Browse files
committed
Add a few pointers to config transform section
1 parent 11e222e commit 118df9e

File tree

1 file changed

+4
-0
lines changed
  • umbraco-cloud/build-and-customize-your-solution/set-up-your-project/project-settings

1 file changed

+4
-0
lines changed

umbraco-cloud/build-and-customize-your-solution/set-up-your-project/project-settings/config-transforms.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ The `{environment}` part needs to be replaced with the target environment, for w
3434

3535
This file needs to be created on a local clone of your project, as this will ensure that the file is added to the project repository.
3636

37+
{% hint style="info" %} If you don't have a web.config you will need to create one locally as well. {% endhint %}
38+
3739
When the file is deployed to the Live environment, the transforms will be applied to the `Web.config` file in the `Root` of your project. In the case that you have mutliple mainline environments, the `Web.Production.config` will **only** transform the `Web.config` on the Live environment.
3840

3941
For each deployment, the Umbraco Cloud engine searches for all of the `.{environment}.config` files in your site and apply the transforms.
@@ -93,6 +95,8 @@ The above snippet requires your project to have a web.config file with a matchin
9395

9496
This config transform will add a `<rule>` to `<system.webServer><rewrite><rules>`. The `xdt:Transform` attribute is used to tell the system what to transform. In this case, the value is `Insert`, which means it will add the section if it's not already in the config file.
9597

98+
If you don't have the `<rewrite>` and `<rules>` section in your `web.config` file, you can add the attribute `xdt:Transform="InsertIfMissing"` to those two section in the transform file and they will then get applied to the `web.config`.
99+
96100
## appsettings.json transforms
97101

98102
On Umbraco Cloud, projects come with an **appsettings.json** file for each of your different environments.

0 commit comments

Comments
 (0)