Alert user when they're using functions + unsupported Node versions
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 30/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- typescript
- 領域
- cli
調査の方向性
ntl dev のフローから開始し、edge functions とプロジェクトの Node.js バージョンがどのように検出されるかを特定します。リンクされている Lambda@Edge の制限に関するドキュメントで AWS がサポートするバージョンを確認し、そのうえで警告の動作を定義し、サポートされていないバージョンが使用された場合にデプロイ前に警告が表示されることを検証します。
索引モデルが issue の本文から書いたものです。
説明
Which problem is this feature request solving?
When my project was using new Node 18 APIs:
- functions would work locally using the CLI
- deploys would fail
This is because AWS doesn’t support Node 18 (at the moment of running the CLI).
Downgrading to Node 16 fixed it.
Describe the solution you'd like
A great developer experience would have been to know about this version incompatibility prior to deploying.
Perhaps the CLI could tell users when they’re using edge functions in conjunction with versions of Node.js that aren’t supported?
For example:
> ntl dev
Running Netlify Functions with an unsupported version of Node.js (18) and may not deploy as expected.
Consider using a version of Node.js listed in https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/edge-functions-restrictions.html#lambda-at-edge-function-restrictions
(To hide this message... /* provide way to dismiss the message for this project? */)
Pull request (optional)
- I can submit a pull request.
- 主要言語
- TypeScript
- スター
- 1.9k
- フォーク
- 480
- 平均マージ
- 1日 15時間
- マージ済み PR(30日)
- 66
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
netlify/cli のほかの issue
-
db-status.test fails if the database is disabled対応中かも @paulleephp が 1 日前に担当しました。 オープンtype: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
`client-ip` is not an IP address when `x-forwarded-for` holds a list or a port対応中かも @Dev-next-gen が 21 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
`netlify dev` with `--cwd` from outside the project: every function 500s with "module is not defined in ES module scope" (`detectZisiBuilder` passes a string to `readPackageUp`)対応中かも @bsplatt92 が 62 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
area: command: deploy area: docs type: feature
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
netlify/cli#1984 · コメント 19 件 · リアクション 3 件 ·
メンテナーはふだん 1 日以内に返信
-
type: bug
難易度 4/5 3〜5日 初心者へのやさしさ 20/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
check:passed streams:add
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
iptv-org/iptv#55821 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
vercel-labs/wterm#246 ·
メンテナーはふだん 1 日以内に返信
-
bug ready-for-agent
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
nearform/lastlight#452 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
fix(console): include PARTITIONED BY in generated table DDL対応中かも @aubdiy が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
apache/polaris-tools#291 ·
メンテナーはふだん 6 日以内に返信