Netlify CLI not consistently reloading edge functions when file is overwritten
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- node.js, typescript
- 领域
- cli
调研方向
使用 ./netlify/edge-functions/server.js 和提供的 Remix 配置,通过在 netlify dev 期间覆盖生成的文件,复现 Netlify CLI 的问题。首先跟踪 CLI 中用于监视和重新加载 edge function 的入口点。当重复构建能够持续重新加载 edge function,而无需重启 netlify dev 时,即视为完成。
由索引模型根据 Issue 内容生成。
描述
Describe the bug
I am using remix with the @netlify/remix-edge-adapter. This bundles the remix server into an edge function at ./netlify/edge-functions/server.js
When I change a file that rebuilds the server, the above file is updated, but netfliy CLI doesn't realize a change, and thus doesn't reload function, so every time I make a change, I have to kill netlify dev and restart it. It does seem to work about 1 in 5-15 saves.
Video here of me replicating it: https://share.getcloudapp.com/L1uDojBD
Note it says "serving cache" in my logs- this has nothing to do with the edge function and isn't the issue here. https://wes.io/L1uDojBD
Steps to reproduce
see above
Configuration
[build]
command = "remix build"
publish = "public"
[dev]
command = "remix watch"
port = 3000
autoLaunch = false
[[headers]]
for = "/build/*"
[headers.values]
"Cache-Control" = "public, max-age=31536000, s-maxage=31536000"
Environment
System:
OS: macOS 13.0
CPU: (10) arm64 Apple M1 Max
Memory: 5.18 GB / 64.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 18.12.1 - /usr/local/bin/node
Yarn: 1.22.19 - /usr/local/bin/yarn
npm: 9.5.0 - /usr/local/bin/npm
npmGlobalPackages:
netlify-cli: 12.14.0
- 主要语言
- TypeScript
- 星标
- 1.9k
- 派生
- 478
- 平均合并
- 2 天 17 小时
- 30 天内合并 PR
- 63
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
netlify/cli 的其他 Issue
-
netlify dev returns 403 for static files in subdirectories on Windows (backslash in rewritten path)可能已有人在做 @Ramnath0521 于 2 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
`client-ip` is not an IP address when `x-forwarded-for` holds a list or a port可能已有人在做 @Dev-next-gen 于 11 天前认领。 未关闭
难度 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 于 52 天前认领。 未关闭
难度 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 天内回复
-
CARD未关闭
难度 5/5 一周以上 新手友好度 5/100
维护者通常 1 天内回复
相似的 Issue
-
Mondriaan
难度 1/5 1 小时以内 新手友好度 88/100
knaw-huc/textannoviz#709 ·
维护者通常 1 天内回复
-
streams:add
难度 1/5 1 小时以内 新手友好度 62/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
walletbeat/walletbeat#1558 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
hawk-digital-environments/HAWKI#438 ·
维护者通常 1 天内回复
-
good first issue
难度 2/5 1-3 小时 新手友好度 78/100
OktoLabsAI/okto-pulse#114 ·
维护者通常 1 天内回复