✨ Custom paths via definePageMeta() in all modes
Custom paths set with definePageMeta() are now used in all customRoutes modes instead of only in 'meta' mode. If a route has custom paths from multiple sources the definePageMeta() value takes precedence and a warning is logged during build, this makes it possible to migrate from the pages option or the deprecated defineI18nRoute() macro one page at a time.
Route meta is now the canonical source of custom paths at build time, this allows projects and modules to set custom paths on routes they add or change in the pages:extend hook, see Hooks and modules.
🛠️ Under the hood
The logic behind differentDomains and multiDomainLocales now shares a single implementation, we're exploring whether these can be combined under a single config option in v11.
Please try it out and let me know if you run into any issues 🙏
🚀 Features
- Resolve route options from meta in all
customRoutesmodes - by @BobbieGoede in #4022 (39a8b)
🐞 Bug Fixes
- UseRuntimeConfig type signature compatibility - by @BobbieGoede (89b72)
- Derive route resources from route localization - by @BobbieGoede in #4047 (1d378)
- Skip localizing
routeRulesredirect stub pages - by @BobbieGoede in #4048 (af344) - Locale head type compat - by @BobbieGoede in #4055 (ddeaa)
- Skip optimizing dynamic locale files - by @BobbieGoede in #4058 (c1187)
- Validate locale codes to ensure path segment safety - by @BobbieGoede in #4059 (45498)
- seo: Resolve canonical and og:url from the current locale domain - by @BobbieGoede in #4043 (2452a)