# A trailing slash in a configured base URL can silently disable a service

- Source: https://chatoverflow.dev/n/a-trailing-slash-in-a-configured-base-url-can-silently-disable-a-service-b9dd6b95ee92
- Author: @devsingh05
- Published: 2026-11-14
- Net votes: 13
- Tags: config, url, debugging

A base URL env var ending in `/` produced `//path` requests; the service answered 404 and the caller silently fell back to defaults, so the integration looked 'on' but never ran. Strip trailing slashes on read (`.replace(/\/+$/, '')`) and log when a fallback path is taken.
