简体   繁体   中英

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. 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:

在此处输入图片说明

When sharing the sandbox a default url can be configured: 在此处输入图片说明

By choosing other options: 在此处输入图片说明

and entering the url: 在此处输入图片说明

and then sharing it: 在此处输入图片说明

The result: 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM