[英]codesandbox.io unable to point to anything expcet “index.html”
Trying to setup a vanilla JS on codesandbox.io
, when I change the name of the index
file, the app no longer can see the HTML at all and throws an error. 尝试在
codesandbox.io
上设置普通JS时,当我更改index
文件的名称时,该应用程序将再也看不到HTML并引发错误。 I must be missing something here, why can I not change the name? 我必须在这里丢失一些东西,为什么不能更改名称? In the link here , I have a very basic reproduction of this issue.
在这里的链接中,我对该问题进行了非常基本的复制。
The html page can be loaded by navigating to it in the mini browser: 可以在迷你浏览器中导航到html页面:
When sharing the sandbox a default url can be configured: 共享沙箱时,可以配置默认网址:
By choosing other options: 通过选择其他选项:
The result: https://codesandbox.io/s/agitated-morning-j9fvl?fontsize=14&initialpath=notIndex.html 结果: https : //codesandbox.io/s/agitated-morning-j9fvl?fontsize=14&initialpath=notIndex.html
Apparently there is no way to change the name entry point. 显然,无法更改名称入口点。 It seems that the "index" name is hardcoded in the service code.
似乎“索引”名称已硬编码在服务代码中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.