HTTP gateway routes can target a function version
HTTP gateway routes now support targeting specific versions of functions.
You can configure this directly via the "Version" dropdown in the console, or starting with CLI v3.8.10, declare it using the upstreamResourceVersion field in SCF and WEB_SCF routes. The available options are:
| Value | Meaning |
|---|---|
Version number (such as 1, 2) | Forward to that version. It must be published |
$LATEST | Forward to the latest version, switching automatically on each release |
$DEFAULT | Default. Follows the function's version traffic split, same as before |
Docs: Access functions through the HTTP gateway · CLI: forward version