markstream-nuxt
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseMarkstream Nuxt
Markstream Nuxt
Use this skill when the host app is Nuxt and SSR boundaries matter.
当宿主应用为Nuxt且SSR边界至关重要时,可使用本技能。
Workflow
工作流程
- Confirm the repo is Nuxt 3 or 4.
- Install plus only the optional peers required by the requested features.
markstream-vue - Keep browser-only peers behind client-only boundaries.
- Prefer wrappers,
<client-only>plugins, or guarded setup paths..client
- Prefer
- Import from a client-safe app shell or plugin.
markstream-vue/index.css - Start with , and move to
contentplusnodesonly when the UI is streaming.final - Validate with the smallest relevant Nuxt dev, build, or typecheck command.
- 确认仓库为Nuxt 3或4版本。
- 安装以及所需功能仅需的可选依赖项。
markstream-vue - 将仅浏览器依赖项置于仅客户端边界之后。
- 优先使用包装器、
<client-only>插件或受保护的配置路径。.client
- 优先使用
- 从客户端安全的应用壳层或插件中导入。
markstream-vue/index.css - 从开始,仅当UI处于流式传输状态时,才切换为
content搭配nodes。final - 使用最相关的最小化Nuxt开发、构建或类型检查命令进行验证。
Default Decisions
默认决策
- SSR safety comes before feature completeness.
- Avoid import-time access to browser globals from server code paths.
- Treat Monaco, Mermaid workers, and similar heavy peers as client-only unless the repo already has a proven SSR pattern.
- SSR安全优先于功能完整性。
- 避免在服务器代码路径中于导入时访问浏览器全局对象。
- 除非仓库已有成熟的SSR模式,否则将Monaco、Mermaid Worker及类似的重型依赖项视为仅客户端使用。
Useful Doc Targets
有用的文档目标
docs/nuxt-ssr.mddocs/guide/installation.mddocs/guide/usage.mddocs/guide/troubleshooting.md
docs/nuxt-ssr.mddocs/guide/installation.mddocs/guide/usage.mddocs/guide/troubleshooting.md