在netlify上部署Angular 项目时,未从https://netlify转换到新域,netlify.toml和_redirects未按预期工作,并给出错误404页面未找到
kpbwa7wx1#
确保在angular.json assets数组中包含_redirects文件,以便Angular在构建项目时包含该文件的副本:
"assets": [ "src/_redirects" ]
查看更多详情:https://docs.netlify.com/integrations/frameworks/angular/
1条答案
按热度按时间kpbwa7wx1#
确保在angular.json assets数组中包含_redirects文件,以便Angular在构建项目时包含该文件的副本:
查看更多详情:https://docs.netlify.com/integrations/frameworks/angular/