defaultIndex 从 public 中间件配置中删除
¥defaultIndex is removed from the public middleware configuration
在 Strapi 5 中,'defaultIndex' 选项不再存在,如果已连接,根 / URL 会自动重定向到管理面板登录或主页。
¥In Strapi 5, the 'defaultIndex' option does not exist anymore and the root / URL automatically redirects to the admin panel login or homepage if already connected.
此页面是 重大变更数据库 的一部分,提供有关重大更改的信息以及从 Strapi v4 迁移到 Strapi 5 的其他说明。
¥This page is part of the breaking changes database and provides information about the breaking change and additional instructions to migrate from Strapi v4 to Strapi 5.
重大更改描述
¥Breaking change description
在 Strapi v4 中
¥In Strapi v4
public 中间件中有一个 defaultIndex 选项,用于在管理面板的根 / URL 上添加自定义页面。
¥There is a defaultIndex option in the public middleware to add a custom page on the root / URL of the admin panel.
在 Strapi 5 中
¥In Strapi 5
defaultIndex 选项不再存在,如果已连接,根 / URL 会自动重定向到管理面板登录或主页。
¥The defaultIndex option does not exist anymore and the root / URL automatically redirects to the admin panel login or homepage if already connected.
迁移
¥Migration
不需要手动迁移,但请注意根 / URL 的新行为。
¥No manual migration is required, but please be aware of the new behavior for the root / URL.