Skip to main content

HTTP gateway routes can target a function version

NewHTTP Gateway · Cloud Functions · CLI← Changelog

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:

ValueMeaning
Version number (such as 1, 2)Forward to that version. It must be published
$LATESTForward to the latest version, switching automatically on each release
$DEFAULTDefault. Follows the function's version traffic split, same as before

Docs: Access functions through the HTTP gateway · CLI: forward version