部署一个(静态)Vite React 应用
原文英文,约400词,阅读约需2分钟。发表于: 。So there's probably already a ton of blog posts out there on this subject, even this is a follow up to my own previous post on the same topic. Things have changed since CRA was the recommended way...
本文介绍了如何将使用Vite和TanStack Router构建的React项目部署到GitHub Pages,包括安装'gh-pages'包、在package.json中添加主页属性、配置路由、添加部署脚本,并运行部署命令,最后确保在GitHub设置中选择gh-pages分支完成部署。