最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

reactjs - Vite + react application: unable to deploy to github pages - Stack Overflow

programmeradmin5浏览0评论

I've looked up similar questions but that didn't help me. So I followed this tutorial and have made all tweaks described there.

My repo here

Application should be available here (but it doesn't) /

I am doing deploy with npm script: npm run deploy and looks like everything works fine, no errors. If you check gh-pages branch it filled correctly. But when I am trying to access URL / it gives me index.html from source code (containing link to jsx file) and I have no idea why it's happening! Thanks in advance!

I've looked up similar questions but that didn't help me. So I followed this tutorial https://www.youtube/watch?v=hn1IkJk24ow and have made all tweaks described there.

My repo here https://github/painkkiller/zscore

Application should be available here (but it doesn't) https://painkkiller.github.io/zscore/

I am doing deploy with npm script: npm run deploy and looks like everything works fine, no errors. If you check gh-pages branch https://github/painkkiller/zscore/tree/gh-pages it filled correctly. But when I am trying to access URL https://painkkiller.github.io/zscore/ it gives me index.html from source code (containing link to jsx file) and I have no idea why it's happening! Thanks in advance!

Share Improve this question asked Mar 11 at 14:01 Dmitry MaluginDmitry Malugin 9191 gold badge7 silver badges30 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

I've found the source of error. With this configuration you should have deploy from gh-pages branch:

发布评论

评论列表(0)

  1. 暂无评论