Routing determines what content is returned to a visitor's browser when they request a URL. Custom routing allows you to extend the default behavior.
This reference covers all keys available in CloudCannon for configuring your routing.json file. For more information, please read our documentation on Routing in general and configuring custom routing.
All custom routing options are configured in the routing.json file in the .cloudcannon folder within your root directory.
For IDE autocomplete and validation, see our JSON Schemas and TypeScript Types.
- Description:
Configuration for the
.cloudcannon/routing.jsonfile. Defines redirects, rewrites, and custom HTTP headers for your site.- Type:
Object- Properties:
An array of header rules to apply custom HTTP headers to responses.