Module metadata

Source

Modules§

image
(partial) Rust port of the next-metadata-image-loader
route
Rust port of the next-metadata-route-loader

Structs§

GlobalMetadataFileMatch
MetadataFileMatch

Statics§

STATIC_GLOBAL_METADATA
STATIC_LOCAL_METADATA

Functions§

is_metadata_route
Remove the ‘app’ prefix or ‘/route’ suffix, only check the route name since they’re only allowed in root app directory
is_metadata_route_file
When you only pass the file extension as [], it will only match the static convention files e.g. /robots.txt, /sitemap.xml, /favicon.ico, /manifest.json.
is_static_metadata_route_file
match_global_metadata_file
match_local_metadata_file
normalize_metadata_route
Map metadata page key to the corresponding route