Repository navigation
fix(site): the generated context globs name a base the dev server accepts - #1375
Merged
Merged
Conversation
alowpoly
enabled auto-merge
October 6, 2026 00:56
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.
Change
Since #1358,
astro devcannot load a page. The generated modulessite/prepared/prepared-context-objects.mtsandsite/prepared/prepared-context-json.mtspassbase: '..'toimport.meta.glob. The dev transform of Vite 8.2.2, the version Astro runs, refuses a base that does not start with/,./or../. The dev server answers 500 for the module and the page ends withdata-ready="error".prepare-catalog.mtsnow writesbase: '../'in its three globs. The glob keys do not change.Evidence and limits
Proves the change:
body-additions.test.mtsfails onmainand passes here.astro devin headless Chromium. Onmainat bceb69c,/sun/ends indata-ready="error". Here,/sun/,/earth/and/saturn/reachdata-ready="true"with no failed response and no console error.../src/objects/<id>/….astro buildhere bundles both environments and writes 9,871 pages; itsapplication-world-contextchunk holds the same 103 keys.main's build is not affected: Vite 8.2.2'sbuild()output for the two modules is byte-identical for'..'and'../'.Clean: ESLint on both files; 43 of 47 tests in the 9 test files that touch the generator, its output or its importers.
Pre-existing, identical on
main:site/application-world-resources.characterization.test.mtsLimit: after the local build reported complete, its process ran out of Node's default heap, which the deploy raises to 6144 MB. The steps after
astro builddid not run.PR rules: titles, PDS4 provenance and ISO plain language.