[Statsig Adpater] migrate from statsig-node-lite to @statsig/serverless-client

未关闭
#239 0 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
38/100
Issue 类型
重构
描述清晰度
需要澄清
活跃度
停滞
领域
cloud, tooling

调研方向

首先定位 Statsig 适配器及其依赖清单,然后跟踪 statsig-node-lite 和 statsig-node-vercel 如何提供 Vercel Edge 集成。将这些用法与 @statsig/serverless-client 和 @statsig/vercel-edge 进行比较,并验证服务端引导过程仍然暴露会话回放所需的字段。当适配器使用受维护的包,且不会使文档中说明的 Next.js Edge 集成发生回归时,即表示完成。

由索引模型根据 Issue 内容生成。

描述

We use the Flag SDK in our NextJS app with the Statsig adapter and the Vercel Edge integration. We tried to setup Statsig session replays but it did not work when bootstraping server side with the instance provided by the adapter because of some missing fields. It appears the package used by the adapter (statsig-node-lite) is no longer maintained and will be deprecated in favor of @statsig/serverless-client (cf screenshot).

Image

We could replace statsig-node-lite and statsig-node-vercel by @statsig/vercel-edge to make sure @flags-sdk/statsig supports the latest Statsig features.

主要语言
TypeScript
星标
629
派生
93
平均合并
1 天 15 分钟
30 天内合并 PR
25

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

vercel/flags 的其他 Issue

查看 vercel/flags 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。