0xMiden / 0xMiden/tutorials

WebClient tutorials: Convert tutorials to use Vite instead of NextJS

未关闭
#116 3 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Rust
星标
18
派生
34
PR 合并指标
30 天内没有已合并 PR

描述

I think we should switch to using Vite instead of NextJS. Vite allows us not to worry about server-side rendering and the issues that come with that when using the web client SDK. This will allow for cleaner and more readable tutorial code.

Nevertheless, I think we should include a separate section (disclaimer) in the docs that, when using NextJS, one has to use dynamic imports (including an example), which should be clearly visible to anyone working with the web SDK.

One of our pioneers, Zoro, are using Vite for their frontend, and I must say that their web client code is by far more cleaner than our current tutorial code, since they can avoid the dynamic import restriction using Vite.

贡献指南

打开贡献指南

调研方向

Find the existing Next.js tutorial code in the repository, likely in a `web-client` or similar directory. Understand how the current examples work and the dynamic import pattern mentioned. Research Vite setup and create equivalent examples. The goal is to replace the tutorial code with Vite-based versions and add a clear Next.js disclaimer section to the documentation.

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

评估

技术栈
javascript, next.js, react, typescript, vite
领域
documentation, frontend, web-dev
Issue 类型
重构
难度
3/5
预计耗时
1-2 天
活跃度
冷清
描述清晰度
基本清楚
新手友好度
55/100

把新 issue 发到你的邮箱

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