「Gcp/Firebase/CloudFunctions/nodeバージョン」の版間の差分
提供: 初心者エンジニアの簡易メモ
(→nodeのバージョン変更) |
(→nodeのバージョン変更) |
||
| 行4: | 行4: | ||
{ | { | ||
"engines": { | "engines": { | ||
| − | "node": " | + | "node": "20" |
} | } | ||
} | } | ||
</pre> | </pre> | ||
| − | + | 16を20へあげればnode20になる。 | |
| + | |||
| + | 2024/4時点では、最新は20となる。 | ||
参考:https://zenn.dev/cbcloud_blog/articles/36460eca046742 | 参考:https://zenn.dev/cbcloud_blog/articles/36460eca046742 | ||
2024年4月18日 (木) 01:34時点における版
nodeのバージョン変更
functions/package.json
{
"engines": {
"node": "20"
}
}
16を20へあげればnode20になる。
2024/4時点では、最新は20となる。
参考:https://zenn.dev/cbcloud_blog/articles/36460eca046742
バージョンサポートスケジュール
https://cloud.google.com/functions/docs/runtime-support?hl=ja#support_schedule
非推奨のランタイムは 6 ~ 12 か月後に廃止される。
