No Local Settings
Never publish, upload, copy, or deploy local development settings files to a server. Exclude every local settings file from publication artifacts, container images, bundles, archives, and transfer operations, regardless of its filename or whether it is tracked by Git. This includes local overrides, development environment files, and settings generated for a local process. Do not embed their values into published output. Resolve server settings from the target deployment configuration and preserve existing server settings during publication. Validate publication output before transfer and fail publication if local settings files or their embedded values are included.
Philosophy
Local development configuration belongs to the development environment and must not overwrite or leak into a server environment.
Fix
Remove local settings files and their embedded values from publication output, add the necessary exclusions to shared publishing infrastructure, and verify the output before transferring it. Supply server settings through the target deployment configuration.