Adds routing to handle av-embeds routes in the Next.js app and a basic debug output
Moves ThemeProvider out of PageWrapper and into withContexts and _app, beside the other Context providers. This is required as the av-embeds routes do not need to render the page furniture (header/footer etc) that PageWrapper provides, but should still be able to produce a correctly styled 404/500 page if an incorrect route is provided
Code changes
Adds handling of the av-embeds route in the [service]/[[...]].page.tsx catch-all
Adds parsing logic to extract values from requested URL to allow data fetching for media content
Adds boilerplate for AV_EMBEDS analytics
Moves ThemeProvider out of PageWrapper and into withContexts for the Express app and _app for the Next.js app
Updates Storybook stories that need more granular ThemeProvider control
Part of https://jira.dev.bbc.co.uk/browse/WSTEAM1-1191
Overall changes
av-embeds
routes in the Next.js app and a basic debug outputThemeProvider
out ofPageWrapper
and intowithContexts
and_app
, beside the other Context providers. This is required as theav-embeds
routes do not need to render the page furniture (header/footer etc) thatPageWrapper
provides, but should still be able to produce a correctly styled 404/500 page if an incorrect route is providedCode changes
av-embeds
route in the[service]/[[...]].page.tsx
catch-allAV_EMBEDS
analyticsThemeProvider
out ofPageWrapper
and intowithContexts
for the Express app and_app
for the Next.js appThemeProvider
controlTesting
s
inav-embeds
in the URL)Helpful Links
Add Links to useful resources related to this PR if applicable.
Coding Standards
Repository use guidelines