Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Ability to use 'sf lightning dev site' commands in different user context

未关闭
#324 3 条评论 2 个 reaction 已指派 1 人 在 GitHub 查看

@nrkruk 已经在做这个了。

开始于 2025年1月30日。

评估

这个 Issue 还没有评估数据。

描述

In order for this tool to be fully functional, it's necessary to add support to running the lightning dev context under different user contexts. This is especially essential for building Experience Sites as without the proper community user context, entire sections of the experience site are unusable and the usefulness of this tool is severely limited.

Ideally the command should include parameters allowing for the specification of the target username to run the lightning dev localhost context under to allow for context switching while developing experience sites.

I've ran into this especially when working with the B2B Commerce site, which relies heavily on the community user context, and I have tried enabling guest user access, however this only partly solves the problem since the site is still running under the admin user context, which breaks core functionality that would otherwise exist to a generic guest user context, as it appears that the context of the scratch org admin is passed along with the api calls.

主要语言
TypeScript
星标
19
派生
19
平均合并
3 天 12 小时
30 天内合并 PR
2

环境准备

从这里开始

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

salesforcecli/plugin-lightning-dev 的其他 Issue

查看 salesforcecli/plugin-lightning-dev 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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