routePrefix cannot be overridden by AzureFunctionsJobHost__extensions__http__routePrefix environment variable #3009
Labels
Needs: Triage (Functions)
potential-bug
Items opened using the bug report template, not yet triaged and confirmed as a bug
Description
routePrefix
is currently read directly from thehost.json
file with no provision to override from an environment variable.See FunctionsEndpointDataSource.BuildEndpoints.
The host allows the override via
AzureFunctionsJobHost__extensions__http__routePrefix
, but then the call to the worker fails with a timeout because theroutePrefix
does not match.Steps to reproduce
Minimal repro attached as RoutePrefixOverride.zip
Version
with a route prefix ofapi/foo
inhost.json
.api/foo/version
responds as expected.local.settings.json
:api/foo/version
now returns a 404.api/bar/version
returns a 500.The text was updated successfully, but these errors were encountered: