adobe / adobe/aio-cli-plugin-app-dev

differences between `remote` actions/sequences and `local` app:dev

未关闭
#31 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
2
派生
5
PR 合并指标
30 天内没有已合并 PR

描述

## Listing Web and Non-web urls

`Remote`:
- **web**: will show the cdn host
- **non-web**: this shows the `package/action` path for the sequence that is created when an action has `require-adobe-auth:true`
- **non-web**: will always use the adobeioruntime.net host, not the adobeio-static.net cdn host

`Local`:
- **web**: will always show localhost
- **non-web**: this **does not** show the `package/action` path for the sequence that is created when an action has `require-adobe-auth:true`
- **non-web**: since we don't have a cdn for localhost (no point), the host is the same for both web and non-web

## Calling a non-web action/sequence

`Remote`:
- adobeio-static.net cdn: will always return 404
- adobeioruntime.net: will always return 401

`Local`:
- will always return 401

## Calling a web action/sequence: error response object

`Remote`:
- will have both `code` and `error` properties, e.g.
```
{
"code": "7HlbgAP51Dxwagx2jIZYxS4g9a1ZJeW3",
"error": "Response is not valid 'message/http'.",
}
```

`Local`:
- will only have the `error` property, e.g.
```
{
"error": "Response is not valid 'message/http'.",
}
```

贡献指南

打开贡献指南

调研方向

从 app:dev 的实现开始,复现所列出的 URL 列表、非 Web 调用和 Web 操作错误响应的远程及本地情况。该 issue 未指出文件、测试或期望的行为,因此必须先明确预期结果,之后才能判断是否完成。

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

评估

技术栈
javascript
领域
cli
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

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