inside a upcoming.js multi-language application, I've set a metadataBase along with the alternates#canonical is mechanically populated with The existing route's pathname through the use of ./.
The generateMetadata() https://www.jeffbullas.com/vault/generate-page-metadata/