syntax
syntax "next-router/0.1"; is a version marker. The parser currently does not strictly validate it, but it is recommended to keep it for future compatibility.
provider
Theprovider "<name>" { ... } block encompasses all routing logic for that provider.
defaults and match priority
A provider block typically contains adefaults block and several match blocks.
Merge Rule (Important):
- Configurations defined in
defaultsare applied first. - Configurations from the selected
matchblock are applied afterwards. - This means specific
matchsettings will merge or override the generic settings set insidedefaults.