UmbracoDbDsn connectionstring in Umbraco Cloud Setups

Hi, we have moved to an Umbraco Cloud setup with dev, stage and production servers and when developing locally we are using appsettings.Development.json to set our connectionstring to a local database, and in appsettings.json we have the connectionstring to the production server.
But since this could potentially cuase us to connect to the production database we don’t want the connectionstring there.
Now to the question, could we remove it from our appsettings.json, because isn’t the Cloud servers adding it for us, depending on which server it is?

Hi Jim

Cloud should set the connection string for you, so you don’t need to have it in your appsettings.json file.

1 Like