Repository navigation
fix(core)!: serve the runtime config at its original path again - #1655
Merged
Merged
Conversation
VarshithaPamisetty
had a problem deploying
to
e2e
November 19, 2026 00:56 — with
GitHub Actions
Error
VarshithaPamisetty
had a problem deploying
to
e2e
November 19, 2026 00:56 — with
GitHub Actions
Error
VarshithaPamisetty
temporarily deployed
to
e2e
November 19, 2026 00:56 — with
GitHub Actions
Inactive
VarshithaPamisetty
had a problem deploying
to
e2e
November 19, 2026 00:56 — with
GitHub Actions
Error
VarshithaPamisetty
temporarily deployed
to
e2e
November 19, 2026 00:56 — with
GitHub Actions
Inactive
VarshithaPamisetty
had a problem deploying
to
e2e
November 19, 2026 00:56 — with
GitHub Actions
Error
VarshithaPamisetty
had a problem deploying
to
e2e
November 19, 2026 00:56 — with
GitHub Actions
Error
VarshithaPamisetty
had a problem deploying
to
e2e
November 19, 2026 00:56 — with
GitHub Actions
Error
VarshithaPamisetty
had a problem deploying
to
e2e
November 19, 2026 00:56 — with
GitHub Actions
Error
VarshithaPamisetty
had a problem deploying
to
e2e
November 19, 2026 00:56 — with
GitHub Actions
Failure
VarshithaPamisetty
temporarily deployed
to
e2e
November 19, 2026 00:56 — with
GitHub Actions
Inactive
VarshithaPamisetty
temporarily deployed
to
e2e
November 19, 2026 00:56 — with
GitHub Actions
Inactive
VarshithaPamisetty
had a problem deploying
to
e2e
November 19, 2026 00:56 — with
GitHub Actions
Error
VarshithaPamisetty
temporarily deployed
to
e2e
November 19, 2026 00:56 — with
GitHub Actions
Inactive
VarshithaPamisetty
temporarily deployed
to
e2e
November 19, 2026 00:56 — with
GitHub Actions
Inactive
VarshithaPamisetty
had a problem deploying
to
e2e
November 19, 2026 00:56 — with
GitHub Actions
Error
VarshithaPamisetty
temporarily deployed
to
e2e
November 19, 2026 00:56 — with
GitHub Actions
Inactive
VarshithaPamisetty
had a problem deploying
to
e2e
November 19, 2026 00:56 — with
GitHub Actions
Error
VarshithaPamisetty
temporarily deployed
to
e2e
November 19, 2026 00:56 — with
GitHub Actions
Inactive
VarshithaPamisetty
had a problem deploying
to
e2e
November 19, 2026 00:56 — with
GitHub Actions
Error
VarshithaPamisetty
had a problem deploying
to
agent-bench
November 19, 2026 00:59 — with
GitHub Actions
Error
VarshithaPamisetty
had a problem deploying
to
agent-bench
November 19, 2026 00:59 — with
GitHub Actions
Error
VarshithaPamisetty
had a problem deploying
to
agent-bench
November 19, 2026 00:59 — with
GitHub Actions
Error
VarshithaPamisetty
temporarily deployed
to
agent-bench
November 19, 2026 00:59 — with
GitHub Actions
Inactive
VarshithaPamisetty
had a problem deploying
to
agent-bench
November 19, 2026 00:59 — with
GitHub Actions
Error
VarshithaPamisetty
had a problem deploying
to
agent-bench
November 19, 2026 00:59 — with
GitHub Actions
Error
VarshithaPamisetty
temporarily deployed
to
agent-bench
November 19, 2026 00:59 — with
GitHub Actions
Inactive
VarshithaPamisetty
temporarily deployed
to
agent-bench
November 19, 2026 00:59 — with
GitHub Actions
Inactive
VarshithaPamisetty
had a problem deploying
to
agent-bench
November 19, 2026 00:59 — with
GitHub Actions
Error
VarshithaPamisetty
had a problem deploying
to
e2e
November 19, 2026 01:20 — with
GitHub Actions
Error
VarshithaPamisetty
had a problem deploying
to
e2e
November 19, 2026 01:20 — with
GitHub Actions
Error
VarshithaPamisetty
had a problem deploying
to
e2e
November 19, 2026 01:20 — with
GitHub Actions
Error
VarshithaPamisetty
had a problem deploying
to
e2e
November 19, 2026 01:20 — with
GitHub Actions
Error
VarshithaPamisetty
had a problem deploying
to
e2e
November 19, 2026 01:20 — with
GitHub Actions
Error
VarshithaPamisetty
had a problem deploying
to
e2e
November 19, 2026 01:20 — with
GitHub Actions
Error
VarshithaPamisetty
had a problem deploying
to
e2e
November 19, 2026 01:20 — with
GitHub Actions
Error
VarshithaPamisetty
had a problem deploying
to
e2e
November 19, 2026 01:20 — with
GitHub Actions
Error
VarshithaPamisetty
had a problem deploying
to
e2e
November 19, 2026 01:20 — with
GitHub Actions
Error
VarshithaPamisetty
had a problem deploying
to
e2e
November 19, 2026 01:20 — with
GitHub Actions
Error
VarshithaPamisetty
had a problem deploying
to
e2e
November 19, 2026 01:20 — with
GitHub Actions
Error
VarshithaPamisetty
had a problem deploying
to
e2e
November 19, 2026 01:20 — with
GitHub Actions
Error
VarshithaPamisetty
had a problem deploying
to
e2e
November 19, 2026 01:20 — with
GitHub Actions
Error
VarshithaPamisetty
had a problem deploying
to
e2e
November 19, 2026 01:20 — with
GitHub Actions
Error
VarshithaPamisetty
had a problem deploying
to
e2e
November 19, 2026 01:23 — with
GitHub Actions
Error
VarshithaPamisetty
force-pushed
the
fix/cdk-blocks-sandbox-url-unchanged
branch
from
November 19, 2026 01:26
e87892f to
79cd901
Compare
VarshithaPamisetty
had a problem deploying
to
e2e
November 19, 2026 01:31 — with
GitHub Actions
Error
VarshithaPamisetty
had a problem deploying
to
e2e
November 19, 2026 01:31 — with
GitHub Actions
Error
VarshithaPamisetty
had a problem deploying
to
e2e
November 19, 2026 01:32 — with
GitHub Actions
Error
VarshithaPamisetty
had a problem deploying
to
e2e
November 19, 2026 01:32 — with
GitHub Actions
Error
VarshithaPamisetty
had a problem deploying
to
e2e
November 19, 2026 01:32 — with
GitHub Actions
Error
VarshithaPamisetty
had a problem deploying
to
e2e
November 19, 2026 01:32 — with
GitHub Actions
Error
VarshithaPamisetty
had a problem deploying
to
e2e
November 19, 2026 01:32 — with
GitHub Actions
Error
xyos
reviewed
Nov 19, 2026
The previous change renamed the per-deploy state directory to `.cdk-blocks-sandbox/` and moved the public path its `config.json` is published at along with it, because the directory name and the URL were one string and one constant. That cost a customer's already-deployed frontend its API URL until they redeployed, and a browser or CloudFront cache could hold the stale request past the deploy. An on-disk layout study prototyped keeping the URL fixed while moving only the directory, confirmed on the dev server and in production, SPA and SSR. Since the breakage was the rename's only real cost and it is avoidable, it is avoided. The two are now separate names. `BLOCKS_SANDBOX_DIR` is the developer's private directory and stays `.cdk-blocks-sandbox`. `BLOCKS_SANDBOX_SERVED_DIR` is the published directory and goes back to `.blocks-sandbox`, with `BLOCKS_SANDBOX_PREFIX` built from it so the served path cannot be spelled twice and drift. Every publishing site reads the served constant: the CloudFront behaviour, the S3 key the resolved config is uploaded to, the invalidation paths, the no-cache path registered for that key, and the liveness probe. One site is both — the hosting construct writes a placeholder into the static-asset directory on disk and that path becomes the S3 key — and it follows the served name, as does the S3 exclude that keeps the placeholder from overwriting the real config. Everything touching the developer's disk keeps the renamed directory: the pidfile, the dev server's own config write, the sandbox id, and the copy-forward. The committed Next.js route directory goes back to the published name too, since the directory name under `src/app` IS the URL, while the literal inside the file still reads the renamed disk directory. The root gitignore's negation follows it, and had to move BELOW both state-directory ignores: git takes the last matching pattern, so the negation as placed was overridden and the template's route stopped being committable — silently, because the tracked files kept working while a newly scaffolded app would have had no route at all. A guard carries the invariant that the published path and the disk path are never derived from the same constant, pinned per site and watched failing on every case before the change. The earlier rename guard is rescoped: its text scan could not tell a missed disk rename from a deliberate published path once both names are live, so it now checks shipped source, where the rule is exact. Renumbered from D-030 to D-031, which #1607 holds. Whether this URL needs to exist at all is left open: the browser reads only `apiUrl` from it, the fetch is the last step of a fallback chain after `BLOCKS_API_URL`, and the build already bakes that variable into the frontend, so removing the fetch looks possible but is not decided.
xyos
approved these changes
Nov 19, 2026
3 tasks done
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
#1644 renamed the per-deploy state directory to
.cdk-blocks-sandbox/and moved the public path itsconfig.jsonis published at along with it. The directory name and the URL were one string behind one constant, so one edit did both. Neither has been released yet, so this lands before any customer sees the moved path.That cost a customer's already-deployed frontend its API URL until they redeployed, and a browser or CloudFront cache could hold the stale request past the deploy. It was the rename's only real cost, and it turns out to be avoidable: a prototype confirmed that the URL can stay fixed while only the directory moves, on the dev server and in production, SPA and SSR.
Changes
BLOCKS_SANDBOX_DIRis the developer's private directory and stays.cdk-blocks-sandbox;BLOCKS_SANDBOX_SERVED_DIRis the published directory and goes back to.blocks-sandbox, withBLOCKS_SANDBOX_PREFIXbuilt from it so the served path cannot be spelled twice and drift.@aws-blocks/hostingdoes not depend on@aws-blocks/core, so it keeps a literal there and the guard pins it instead.src/appIS the URL, while the literal inside the file still reads the renamed disk directory. Thehosting-ssrtwin follows..blocks-sandbox/and the template's route directory stopped being committable — silently, because the tracked files keep working while a newly scaffolded app would have had no route at all. Verified with untracked probes in five positions; the ordering is now asserted.minor, the pre-1.0 breaking tier. Rather than add a second entry narrating a moved URL that no release ever shipped, this PR corrects that entry: it no longer announces a breaking change or a required redeploy, and it carries the route-directory detail. The published changelog then tells one story — the directory moved, the URL did not.Testing
5d32092c0:npm run buildclean with 0 TypeScript errors;npm test13173 tests, 13165 pass, 1 fail, 7 skipped;npm run lint0 errors;lint:depsclean;check:apiup to date with no drift; the five sink-guard files pass individually.create-blocks-app419 tests, 418 pass, 1 fail, the same assertion with the same expected and actual values, failing because a nested install inside a temporary fixture cannot complete in this environment.Checklist