You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Built five sections for the Electrolux /cuida home. The question "can I see this locally before shipping it?" has no answer today, and that shapes the whole workflow badly.
Why
FastStore v4 has no local content source. discovery.config.js takes:
contentSource: {type: "CP",project: "electrolux"}
and @faststore/core/src/server/cms/index.ts unconditionally instantiates a remote client from it:
So the first time anyone sees a new section is on the real page, in the real CMS, with real content. There is no way to check spacing, a breakpoint, a dark band, or whether an overlay lands where you meant it, without first committing content to production. For a migration tool whose whole job is visual fidelity, that is a rough inner loop — and it means every layout iteration costs a CP write.
It also blocks parity section --computed-styles as a pre-merge check: you cannot diff a candidate section against the legacy one until the candidate exists in production content.
Possible shapes
Roughly in order of effort:
parity cms preview <entry.json> — serve the site locally with one pulled entry file swapped in for the remote fetch. parity cms pull already writes entries in the authoring shape with entryId/contentType/branch/baseHash, so the file format exists; this is the read side of the same thing.
A section harness — render a single registered section with props from a JSON fixture, no CMS at all. Enough for spacing/breakpoint/token work, which is most of it.
Push for a local content source upstream in @faststore/core — the correct fix, the slowest.
(2) alone would have covered every iteration in this batch.
Repro
# add a section to src/components/index.tsx and cms/faststore/
yarn dev
# open any page — there is no way to make it appear
Context
Built five sections for the Electrolux
/cuidahome. The question "can I see this locally before shipping it?" has no answer today, and that shapes the whole workflow badly.Why
FastStore v4 has no local content source.
discovery.config.jstakes:and
@faststore/core/src/server/cms/index.tsunconditionally instantiates a remote client from it:There is no
type: "local", no filesystem fallback, no fixture path.yarn devrenders whatever the production CP currently says.The consequence
A section is invisible until all of this is done, in this order, against shared infrastructure:
parity cms schema push#343 — not scriptable)So the first time anyone sees a new section is on the real page, in the real CMS, with real content. There is no way to check spacing, a breakpoint, a dark band, or whether an overlay lands where you meant it, without first committing content to production. For a migration tool whose whole job is visual fidelity, that is a rough inner loop — and it means every layout iteration costs a CP write.
It also blocks
parity section --computed-stylesas a pre-merge check: you cannot diff a candidate section against the legacy one until the candidate exists in production content.Possible shapes
Roughly in order of effort:
parity cms preview <entry.json>— serve the site locally with one pulled entry file swapped in for the remote fetch.parity cms pullalready writes entries in the authoring shape withentryId/contentType/branch/baseHash, so the file format exists; this is the read side of the same thing.@faststore/core— the correct fix, the slowest.(2) alone would have covered every iteration in this batch.
Repro