guardian / guardian/dotcom-rendering

Dev Server Should Hit Local Blocks Endpoint

Open
#10,167 0 comments 0 reactions 0 assignees View on GitHub
Team Candidate: WebX
Dominant language
TypeScript
Stars
274
Forks
34
Avg merge
2d 22h
Merged PRs (30d)
121

Description

Currently if you open a liveblog on the DCR dev server, the `fetch` requests it makes for new blocks go to PROD rather than the dev server itself. This may make it difficult to develop and test changes to the blocks loading mechanism.

To solve this the local blocks endpoint may need some way to retrieve blocks data from frontend, similar to what the dev server does for full article requests:

https://github.com/guardian/dotcom-rendering/blob/e0aa663ace65c7f50f13d7433a38cdb44acdab6c/dotcom-rendering/webpack/webpack.config.dev-server.js#L60-L62

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.