Guides and Stories
Guides are an area of the site that uses part dynamic data from Contentful, and part static data from JSON files and HTML files.
Dynamic Data
This is the same as being used in most areas of the site - a GraphQL request in getStaticProps or getServerSideProps.
Static Data
Redirects
Stories are handled by a mixture of ClourdFlare page rules and Bulk Redirects..
Bulk Redirects
These are used to handle the category pages and the index pages as they sit at the root of the domain and no pattern matching can happening. They also handle any story specific redirects where that page is being re-built in Contentful.x
e.g.
www.rapha.cc/stories -> content.rapha.cc/stories
www.rapha.cc/editorial -> content.rapha.cc/stories/editorial
www.rapha.cc/coming-soon -> content.rapha.cc/story/coming-soon
Two properties have been created in CloudFlare
- Bulk Redirect ->
CMS Stories(andCMS Stories UAT) - List -
stories_uat
A list can be downloaded using this repo.
Page Rules
These handle the individual Story pages that are being redirect to the static HTML pages.
rapha.cc/*/*/story/*-> content.rapha.cc/$1/$2/a/story/$3