-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dev route for DCR email-newsletters page #6716
Conversation
Size Change: +6.24 kB (0%) Total Size: 2.39 MB
ℹ️ View Unchanged
|
⚡️ Lighthouse report for the changes in this PRLighthouse tested 2 URLs Report for Article
Report for Front
|
"This PR is stale because it has been open 30 days with no activity. Unless a comment is added or the “stale” label removed, this will be closed in 3 days" |
This PR was closed because it has been stalled for 3 days with no activity. |
What does this change?
Adds a new route to the dev server (IE no effect on Prod) to serve a test version of a DCR newsletters page using a static list of newsletters and static page configuration data.
This involved generalising some of the code used to render article pages to create a
StandAlonePage
component with similar structure to the existing Layout components, but acting as a container for any content passed aschildren
(in this case theNewslettersList
component.Testing:
make dev
Why?
This would be a first step to rendering the "/email-newsletters" page using DCR instead of frontend. The intent would be for fronted to post the request for the rendered page to DCR, with the newsletters data and page data (Nav, Config, Header, cannonical URL etc) as part of the request body, in much the same way frontend requests article pages.
It could also act as a template for rendering other non-article & non-front pages with DCR.
More details on this post: #6473
Screenshots