Problems with opengraph-image when using precompute
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 45/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- next.js, typescript
- 领域
- web-dev
调研方向
从 flags-sdk.dev/frameworks/next/precompute#2-precompute-flags-in-middleware 中记录的 precompute middleware 模式开始,并使用链接的 next-flags-sdk-bug-repro 重现失败。跟踪 opengraph-image URL 的生成和 middleware rewrite,以识别重复的 JWT flag;当生成的 route 使用单个 JWT flag 成功匹配时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
The pattern described for the middleware in the docs https://flags-sdk.dev/frameworks/next/precompute#2-precompute-flags-in-middleware breaks opengraph-image URL generation.
Basically, the URL generated by Next for opengraph-image already includes the JWT flags because it uses the rewritten URL, but the middleware adds the JWT flag again to the URL, which makes the route not match to anything.
- 主要语言
- TypeScript
- 星标
- 629
- 派生
- 93
- 平均合并
- 1 天 15 分钟
- 30 天内合并 PR
- 25
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
vercel/flags 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 45/100
维护者通常 1 天内回复
-
[Feedback] Support/Docs for Next.js v16 "Cache Components"可能重新可做 @dferber90 于 235 天前认领,目前没有进行中的 PR。 未关闭feedback
vercel/flags#349 · 2 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
[Feedback] Interaction between precompute and `typedRoutes`可能重新可做 @dferber90 于 263 天前认领,目前没有进行中的 PR。 未关闭feedback
vercel/flags#287 · 2 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 38/100
vercel/flags#239 · 2 个 reaction ·
维护者通常 1 天内回复
相似的 Issue
-
[BUG]: Duplicate preposition in heading and unformatted feedback text on Strengthen Argument page未关闭bug
难度 2/5 1-3 小时 新手友好度 72/100
AOSSIE-Org/DebateAI#801 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
agents area: runtime automation chore cli consistency dependencies developer-experience difficulty: easy documentation enhancement good first issue help wanted hygiene json-output priority: P3 starters tests
难度 2/5 1-3 小时 新手友好度 72/100
-
Add: BOM Cine未关闭approved check:passed streams:add
难度 1/5 1 小时以内 新手友好度 72/100
维护者通常 1 天内回复