-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add default 404 plugin for convention-routing #5349
Conversation
umi3 约定式路由 404 的功能一直没加,但官网文档中一直有宣称这个功能; 这个插件在业务中已用了一段时间验证了,希望补齐一下 umi 上游 https://umijs.org/zh-CN/docs/convention-routing#404-%E8%B7%AF%E7%94%B1 |
ci broken |
@ycjcl868 CI always broken in PRs and commits |
@ycjcl868 CI error |
@ycjcl868 remind |
@sorrycc 麻烦看下有什么问题或者需要修改点 |
看起来是重复的 PR #4987 |
@xiaohuoni 本 PR 开头就写了, 4987 的实现有问题,并且这个 bug 也不该用 plugin 解决 |
试了一下这个解法 好像在一级目录有问题 我会跳到403 |
replace with #5363 |
Checklist
npm test
passesDescription of change
any feature?
为约定式路由增加默认 404 路由
/404.tsx
路由组件的情况下,/
一层路径下才有 404 路由close 约定路由 404.js 没有生效 #4437 feat: add 404 plugin #4987 umi最新版本使用约定式路由404页面出不来,随便输入路由都是空白页面并未渲染404页面。 #5081 约定路由和 404.tsx 好像不兼容。 #5085 开发环境约定式路由页面不存在无法跳转404页面 #5227