Edge functions silently skipped when running from a workspace package
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 65/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- node.js, typescript
- 领域
- build-system, cli
调研方向
Start by tracing how the CLI passes packagePath and the working directory into @netlify/build, then find the code that resolves .netlify/v1/edge-functions and the tests for workspace builds. Reproduce with netlify build in apps/web from the linked repro. Done means the edge function is bundled and .netlify/edge-functions-dist is produced when invoked from a workspace package.
由索引模型根据 Issue 内容生成。
描述
Bug
In a pnpm workspace, running netlify build or netlify deploy from a package directory skips bundling for functions in .netlify/v1/edge-functions. There's no warning, and the deploy succeeds without edge functions. Serverless functions still deploy.
It works from the workspace root with --filter, and in standalone projects.
Reproduce
Repro: https://github.com/shamilkotta/netlify-edge-monorepo-repro
Run netlify build in apps/web.
Expected: hello is bundled.
Actual: the build completes with packagePath: apps/web, but there's no "Edge Functions bundling" step and no .netlify/edge-functions-dist.
Likely cause
packagePath is set while the build's working directory stays in the package, so resolve(buildDir, packagePath, ".netlify/v1/edge-functions") appears to point at apps/web/apps/web/....
Environment
netlify-cli 27.11.1, @netlify/build 37.4.0, Node 24.13.0, macOS
Related: #7702
- 主要语言
- TypeScript
- 星标
- 1.9k
- 派生
- 482
- 平均合并
- 2 天 13 小时
- 30 天内合并 PR
- 77
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
netlify/cli 的其他 Issue
-
db-status.test fails if the database is disabled可能已有人在做 @paulleephp 于 21 天前认领。 未关闭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 于 41 天前认领。 未关闭
难度 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 于 82 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
area: command: deploy area: docs type: feature
难度 1/5 1 小时以内 新手友好度 88/100
netlify/cli#1984 · 19 条评论 · 3 个 reaction ·
维护者通常 1 天内回复
-
type: bug
难度 4/5 3-5 天 新手友好度 20/100
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 70/100
backnotprop/plannotator#2914 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
microsoft/vscode-containers#655 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 77/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
dsh-tauri-desk/deepseek-harness-desktop#1477 · 1 条评论 ·