Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

希望能有在运行时修改校验用 schema 的途径 #4

Open
Nyaacinth opened this issue Jul 3, 2023 · 3 comments
Open

希望能有在运行时修改校验用 schema 的途径 #4

Nyaacinth opened this issue Jul 3, 2023 · 3 comments

Comments

@Nyaacinth
Copy link

关联 Issue:
NervJS/taro#14103

目前在检查项目后发现似乎无法在运行时修改校验 config 用的 schema,旧的修改 @tarojs/cli/doctor/configSchema 导出的方式也不再有效,主要有扩展 framework 支持范围的 plugin 受到影响(如: https://github.com/SyMind/tarojs-plugin-svelte ),希望能够增加在运行时修改 config schema 的方式

@luckyadam
Copy link
Member

最新版本的 taro doctor 插件改成了远程拉取 https://github.com/NervJS/taro-doctor/blob/main/assets/config_schema.json 的配置,同时也支持修改远程 schema 的地址,等 Taro 发布新版本之后可以使用

@hbwow
Copy link

hbwow commented Jul 26, 2023

请问,由于网络波动,总是远程拉取不到,还有没有什么办法修改呢?
image

@luckyadam
Copy link
Member

请问,由于网络波动,总是远程拉取不到,还有没有什么办法修改呢? image

image
可以自己将自己的配置文件丢到 CDN 上,然后修改 remoteConfigSchemaUrl ,就可以使用自己的配置

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants