Repository navigation
Conversation
There was a problem hiding this comment.
Stale comment
Risk: high. This PR is not approved: it is a large multi-package SSR adapter and compiler change (35 files, ~2.8k additions) that exceeds the low-risk threshold and adds public framework surfaces. Human review is needed and no reviewers were assigned. Cursor Bugbot and Cursor Security Agent were not present after the first check poll.
Sent by Cursor Approval Agent: Pull Request Router
size-limit report 📦
|
There was a problem hiding this comment.
Important
Changes requested. The TanStack end-to-end check passes with locale hashing, but the default setting breaks a client import. Static preview and several framework deployment paths also fail, and Astro can delete unrelated build files.
Approach Sharing the manifest and chunk handler across adapters makes sense. Each adapter also needs to connect that handler to its framework’s actual build output and request routing.
Reviewed changes I reviewed the compiler, manifest, handler, static output, four framework adapters, and their tests.
- Compiler and delivery. The Vite plugin separates server transforms from client splicing, configures relative JS preload URLs, and emits locale-hash aliases for untranslated chunks.
- Edge serving. The manifest, request handler, and static materializer now validate, serve, and copy passthrough chunks.
- Framework integration. TanStack Start forwards delivery options and wraps SSR responses. Astro adds middleware and build hooks, Gatsby adds build and dev-server hooks, and Vite adds preview and post-build handling.
- Verification. All three packages built. Across their suites, 1,870 tests passed and eight compiler tests were skipped. The TanStack Chromium check passed, including navigation into the lazy French route.
A standard Gatsby build cannot produce the manifest these hooks consume
Gatsby builds its browser chunks with webpack, while the splice compiler accepts only Vite. Both Gatsby hooks return when the manifest is missing, and the tests supply that manifest by hand. A site adding these hooks to its own Gatsby build gets no localized chunks. Gatsby build stages · Splice compiler support
Technical details
# Establish the Gatsby build contract
## Affected sites
- `packages/edge/src/adapters/gatsby.ts:76` and `:95` require a prebuilt manifest in the site’s output.
- `packages/edge/src/adapters/__tests__/vite-gatsby.test.ts:79` seeds the files before invoking the hook.
## Required outcome
- Demonstrate a supported way to generate and load spliced Gatsby chunks in a real site. If this API is intended only for sites hosting separately built Vite assets, document and test that narrower contract.Non-blocking
- Streamed markup can wait for an unrelated chunk. With
<main class="page">Bonjour</main>as the first piece, the reader received only<main class="pageuntil more input arrived. Retain a suffix only while it can still be the start of a quoted asset URL, so an SSR shell can paint while deferred content is pending. Stream boundary calculation
gpt-6.2-astra | 𝕏
…nd rebase onto PR #3095 - compiler: type renderBuiltUrl as Vite's RenderBuiltAssetUrl and make only client JS asset URLs relative; share one config() hook with the module preload filter; list JS assets in passthroughChunks under hashStrategy locale - gt-tanstack-start: delivery { mode: 'splice' } defaults to hashStrategy locale, documents false and routing path - gt-edge: streaming quoted-URL rewriter with no length cap; Vary on every rewritable document; base-aware path locale; leave 'chunk'-hash documents unchanged and report once; createSplitAssetStore and headersStore for TanStack Start; gtEdgeVite headersRoot move and static/base-aware preview; guarded headers move; localized prerendered pages for Astro and Gatsby; manifestPath derived from headersPrefix; pure gt-edge/astro with Node integration in gt-edge/astro/integration - tests/apps/tanstack-start: serve dist/client in front of the proxy, read headers from dist/server/_gt-headers, check both builds are deterministic
ceb2c14 to
1dab2c0
Compare
There was a problem hiding this comment.
Stale comment
Risk: high. This PR is not approved: it is a large multi-package SSR adapter and compiler change (43 files, ~3.8k additions) that exceeds the low-risk threshold and adds public framework surfaces. Human review is needed and no reviewers were assigned. Cursor Bugbot and Cursor Security Agent were not present after the first check poll.
Sent by Cursor Approval Agent: Pull Request Router
There was a problem hiding this comment.
Important
Changes requested. Vite can leave private headers in the client build, and a worker update can reuse an immutable URL. Preview and static-page failures are detailed inline.
Reviewed changes I reviewed the fixes and accompanying tests since ceb2c149.
- Separated private headers from client assets. Added split stores, a Node-specific Astro entry point, guarded directory moves, and Vite build and preview handling.
- Reworked HTML localization. Replaced the streaming URL matcher, preserved cookie-based cache variation, handled a shared router and asset base, and rewrote prerendered Astro and Gatsby pages.
- Changed splice defaults and asset handling. TanStack Start now defaults to locale hashing and path routing, and the compiler includes emitted JavaScript assets in the passthrough list.
- Verified the build and browser behavior. All three packages built, 1,957 package tests passed with eight skipped, and the TanStack Chromium fixture passed for default and French routes. Two consecutive builds produced identical client and server files.
gpt-6.2-astra | 𝕏
…nd rebase onto PR #3095 - compiler: type renderBuiltUrl as Vite's RenderBuiltAssetUrl and make only client JS asset URLs relative; share one config() hook with the module preload filter; list JS assets in passthroughChunks under hashStrategy locale - gt-tanstack-start: delivery { mode: 'splice' } defaults to hashStrategy locale, documents false and routing path - gt-edge: streaming quoted-URL rewriter with no length cap; Vary on every rewritable document; base-aware path locale; leave 'chunk'-hash documents unchanged and report once; createSplitAssetStore and headersStore for TanStack Start; gtEdgeVite headersRoot move and static/base-aware preview; guarded headers move; localized prerendered pages for Astro and Gatsby; manifestPath derived from headersPrefix; pure gt-edge/astro with Node integration in gt-edge/astro/integration - tests/apps/tanstack-start: serve dist/client in front of the proxy, read headers from dist/server/_gt-headers, check both builds are deterministic
1dab2c0 to
592a12f
Compare
There was a problem hiding this comment.
Stale comment
Risk: high. This PR is not approved: it is a large multi-package SSR adapter and compiler change (43 files, ~3.8k additions) that exceeds the low-risk threshold and adds public framework surfaces. Human review is needed and no reviewers were assigned. Cursor Bugbot and Cursor Security Agent were not present after the first check poll.
Sent by Cursor Approval Agent: Pull Request Router
There was a problem hiding this comment.
Important
Five P1 findings still block approval. They cover Vite header relocation and preview, custom manifest paths in Vite and Gatsby, cache invalidation for fixed-name workers, and Astro’s file-format locale homepages. The rebase introduced no new findings. Previous review
Reviewed changes since 1dab2c08 center on the rebase onto the updated splice compiler and edge runtime.
- Rebased the adapter stack onto the compiler’s token-based slot replacement and deterministic build IDs, plus the edge runtime’s cache and source-map changes.
- Verified the affected packages. All three builds passed. The package suites passed 1,983 tests, with eight compiler tests skipped.
- Exercised TanStack Start in Chromium. English and French SSR and lazy navigation loaded their scripts with zero redirects or browser errors. Two builds produced byte-identical output across all 18 client files and 28 server files.
gpt-6.2-astra | 𝕏
@generaltranslation/api
@generaltranslation/auth
gt
@generaltranslation/compiler
generaltranslation
gt-edge
@generaltranslation/format
gtx-cli
gt-i18n
@generaltranslation/icu
gt-next
gt-node
@generaltranslation/paraglide-js
gt-payload
@generaltranslation/python-extractor
gt-react
@generaltranslation/react-core
@generaltranslation/react-core-linter
gt-react-native
gt-remark
gt-rrweb
gt-sanity
@generaltranslation/supported-locales
gt-svelte
@generaltranslation/svelte-extractor
gt-tanstack-start
gt-vue
@generaltranslation/vue-extractor
commit: |
…nd rebase onto PR #3095 - compiler: type renderBuiltUrl as Vite's RenderBuiltAssetUrl and make only client JS asset URLs relative; share one config() hook with the module preload filter; list JS assets in passthroughChunks under hashStrategy locale - gt-tanstack-start: delivery { mode: 'splice' } defaults to hashStrategy locale, documents false and routing path - gt-edge: streaming quoted-URL rewriter with no length cap; Vary on every rewritable document; base-aware path locale; leave 'chunk'-hash documents unchanged and report once; createSplitAssetStore and headersStore for TanStack Start; gtEdgeVite headersRoot move and static/base-aware preview; guarded headers move; localized prerendered pages for Astro and Gatsby; manifestPath derived from headersPrefix; pure gt-edge/astro with Node integration in gt-edge/astro/integration - tests/apps/tanstack-start: serve dist/client in front of the proxy, read headers from dist/server/_gt-headers, check both builds are deterministic
- gtEdgeVite shares the pending headers move across the plugin instance of each environment, and moves the headers once every environment is built, whether Vite builds them in a custom buildApp or after it. - vite preview splices from headersRoot once the headers moved, and Vite preview and the Gatsby dev server pass the derived manifestPath. - Fixed-name passthrough JavaScript assets go into the locale hash. - Static pages include Astro's build.format 'file' pages; a headersRoot holding a file its manifest does not name is never replaced; and materializeStatic({ overwriteDocuments: false }) keeps framework pages. - localizeDocumentResponse varies by Cookie when the manifest names an enable-i18n cookie and keeps documents with i18n off private. - gtTanstackStart warns about hashStrategy 'chunk' with splice delivery.
592a12f to
2e147c3
Compare
There was a problem hiding this comment.
Stale comment
Risk: high. This PR is not approved: it is a large multi-package SSR adapter and compiler change that exceeds the low-risk threshold and adds public framework surfaces. Human review is needed and no reviewers were assigned. Cursor Bugbot and Cursor Security Agent were not present after the first check poll.
Sent by Cursor Approval Agent: Pull Request Router
…nd rebase onto PR #3095 - compiler: type renderBuiltUrl as Vite's RenderBuiltAssetUrl and make only client JS asset URLs relative; share one config() hook with the module preload filter; list JS assets in passthroughChunks under hashStrategy locale - gt-tanstack-start: delivery { mode: 'splice' } defaults to hashStrategy locale, documents false and routing path - gt-edge: streaming quoted-URL rewriter with no length cap; Vary on every rewritable document; base-aware path locale; leave 'chunk'-hash documents unchanged and report once; createSplitAssetStore and headersStore for TanStack Start; gtEdgeVite headersRoot move and static/base-aware preview; guarded headers move; localized prerendered pages for Astro and Gatsby; manifestPath derived from headersPrefix; pure gt-edge/astro with Node integration in gt-edge/astro/integration - tests/apps/tanstack-start: serve dist/client in front of the proxy, read headers from dist/server/_gt-headers, check both builds are deterministic
2e147c3 to
0bde56c
Compare
- gtEdgeVite shares the pending headers move across the plugin instance of each environment, and moves the headers once every environment is built, whether Vite builds them in a custom buildApp or after it. - vite preview splices from headersRoot once the headers moved, and Vite preview and the Gatsby dev server pass the derived manifestPath. - Fixed-name passthrough JavaScript assets go into the locale hash. - Static pages include Astro's build.format 'file' pages; a headersRoot holding a file its manifest does not name is never replaced; and materializeStatic({ overwriteDocuments: false }) keeps framework pages. - localizeDocumentResponse varies by Cookie when the manifest names an enable-i18n cookie and keeps documents with i18n off private. - gtTanstackStart warns about hashStrategy 'chunk' with splice delivery.
There was a problem hiding this comment.
Stale comment
Risk: high. This PR is not approved: it is a large multi-package SSR adapter and compiler change (45 files, ~4.4k additions) that exceeds the low-risk threshold and adds public framework surfaces. Human review is needed and no reviewers were assigned. Cursor Bugbot and Cursor Security Agent were not present after the first check poll.
Sent by Cursor Approval Agent: Pull Request Router
…nd rebase onto PR #3095 - compiler: type renderBuiltUrl as Vite's RenderBuiltAssetUrl and make only client JS asset URLs relative; share one config() hook with the module preload filter; list JS assets in passthroughChunks under hashStrategy locale - gt-tanstack-start: delivery { mode: 'splice' } defaults to hashStrategy locale, documents false and routing path - gt-edge: streaming quoted-URL rewriter with no length cap; Vary on every rewritable document; base-aware path locale; leave 'chunk'-hash documents unchanged and report once; createSplitAssetStore and headersStore for TanStack Start; gtEdgeVite headersRoot move and static/base-aware preview; guarded headers move; localized prerendered pages for Astro and Gatsby; manifestPath derived from headersPrefix; pure gt-edge/astro with Node integration in gt-edge/astro/integration - tests/apps/tanstack-start: serve dist/client in front of the proxy, read headers from dist/server/_gt-headers, check both builds are deterministic
- gtEdgeVite shares the pending headers move across the plugin instance of each environment, and moves the headers once every environment is built, whether Vite builds them in a custom buildApp or after it. - vite preview splices from headersRoot once the headers moved, and Vite preview and the Gatsby dev server pass the derived manifestPath. - Fixed-name passthrough JavaScript assets go into the locale hash. - Static pages include Astro's build.format 'file' pages; a headersRoot holding a file its manifest does not name is never replaced; and materializeStatic({ overwriteDocuments: false }) keeps framework pages. - localizeDocumentResponse varies by Cookie when the manifest names an enable-i18n cookie and keeps documents with i18n off private. - gtTanstackStart warns about hashStrategy 'chunk' with splice delivery.
0bde56c to
8dd7a29
Compare
… build order and forward cookie names to splice - gtEdgeVite records the app build in a buildApp pre hook and moves the headers once every environment it lists is built, so programmatic createBuilder() without a builder option and builds split between builder.buildApp and a later plugin keep the manifest; vite.build() still moves right after the client build - vite preview splices whenever a manifest option or a manifest on disk exists, and reads headers from headersRoot whenever they moved there, even with a manifestPath left in the client build - localizeDocumentResponse adds Vary: Cookie and, with i18n turned off, Cache-Control: private, no-store to HEAD and compressed HTML responses - gtTanstackStart passes localeCookieName and enableI18nCookieName to the splice delivery, so its manifest names the runtime's cookies
… materialized chunks in preview Track builder.build calls so the headersRoot move waits only for in-flight builds and environments whose outDir overlaps the target, which covers parallel builds and skipped environments. Preview with an explicit manifest now splices only when runtime headers exist on disk, so a materialized static build is served from disk.
…ut dir, and preview under the manifest's headersPrefix
There was a problem hiding this comment.
Stale comment
Risk: high. This PR is not approved: it adds SSR and static adapters across compiler, edge, and TanStack Start with a large runtime blast radius and new public framework surfaces, which is above the low-risk threshold. Human review is needed and no reviewers were assigned. Cursor Bugbot and Cursor Security Agent were not present.
Sent by Cursor Approval Agent: Pull Request Router
…llback copy exists
21f669a to
42df041
Compare
There was a problem hiding this comment.
Stale comment
Risk: high. This PR is not approved: it adds SSR and static adapters across compiler, edge, and TanStack Start with a large runtime blast radius and new public framework surfaces, which is above the low-risk threshold. Human review is needed and no reviewers were assigned. Cursor Bugbot and Cursor Security Agent were not present.
Sent by Cursor Approval Agent: Pull Request Router
|
@greptileai Please re-review |
There was a problem hiding this comment.
Important
Changes requested. I reproduced a build that deleted an existing file, a second client output that retained private headers, a static preview that returned HTTP 500, and an old immutable URL that served another release’s JavaScript.
Reviewed changes I reviewed the two commits since c5157b0d, including the passthrough fix that landed during verification.
- Changed Vite header relocation. The adapter tracks active builds and temporarily moves headers aside when a later environment writes to their directory.
- Changed preview routing. Preview reads the private header prefix from a supplied manifest or loader to select the client or server directory.
- Changed previous-release chunk handling. The handler redirects a previous passthrough URL to the current locale hash when both releases list the filename as passthrough and the archive has no copy.
- Verified the edge package. The build, package checks, typecheck, and all 731 tests passed. Separate Vite and handler fixtures reproduced the findings below.
gpt-6.2-astra | 𝕏
… keep static preview working, and establish previous passthrough ownership
Dismissed because a newer commit was pushed; Greptile will re-review the current head.
There was a problem hiding this comment.
Stale comment
Risk: high. This PR is not approved: it adds SSR and static adapters across compiler, edge, and TanStack Start with a large runtime blast radius and new public framework surfaces, which is above the low-risk threshold. Human review is needed and no reviewers were assigned. Cursor Bugbot and Cursor Security Agent were not present after the first check poll.
Sent by Cursor Approval Agent: Pull Request Router
There was a problem hiding this comment.
Important
Changes requested. Static preview can expose a custom private headers directory, a valid multi-output static build fails, and adding a second copy of the same archived chunk identity can turn a 200 into a 404.
Reviewed changes in 1c0bef32 since the review of 42df0417 cover the Vite adapter and previous-release chunk handling.
- Tracked header relocation. The adapter records completed moves and preserves the staged directory when restoring it fails.
- Processed multiple client outputs. The build hook verifies each output containing a manifest and materializes each one in static mode.
- Restored file-backed static preview. Materialized pages and chunks can load after the build deletes the manifest that the provider reads.
- Checked historical chunk ownership. The handler considers both passthrough and translated files when choosing an archive response or a redirect.
The gt-edge build, package checks, typecheck, and all 739 tests passed.
Non-blocking
- A later build can restore an earlier build’s headers. With Vite 7.3.7, I ran a standalone build and then a fresh app build in the same process. The second client emitted no GT assets, but the adapter restored the first build’s manifest after the second SSR build emptied its output. Associate a recorded move with the client environment that performed it before adopting it in a new builder. Relocation tracking
gpt-6.2-astra | 𝕏
…t static with headersRoot, and deduplicate identical archived passthrough hashes
There was a problem hiding this comment.
Stale comment
Risk: high. This PR is not approved: it is a large multi-package SSR/static adapter change (46 files, ~5.7k additions) that exceeds the low-risk threshold and adds public framework surfaces. Human review is needed and no reviewers were assigned.
Sent by Cursor Approval Agent: Pull Request Router
There was a problem hiding this comment.
Important
Changes requested. A Vite preview of a materialized build returns 500 for pages and chunks when its manifest provider uses a JSON import.
Reviewed changes in 2819fe3c cover Vite preview, multi-output static builds, and archived passthrough chunks.
- Resolved the preview prefix from the manifest provider. Static preview now uses the provider’s custom headers prefix and classifies loader failures before handing requests to Vite.
- Allowed multiple static outputs with
headersRoot. Each output is verified and materialized. The single-target restriction applies only when headers are relocated. - Recognized identical archived chunks. Retained releases can share a passthrough file when they agree on its path and locale hash.
The gt-edge build, package checks, typecheck, and all 741 unit tests passed.
Non-blocking
- An old worker URL can serve current bytes after a switch to per-chunk hashing. The new build can still ship
assets/worker.jseven though itspassthroughChunksis empty. With two matching retained manifests and no archived copy, the handler returned the current worker under the old ETag with a one-year immutable cache lifetime. Require a matching archived copy before serving a fixed-name file in this case. Previous-owner check
gpt-6.2-astra | 𝕏
…d ENOENT in vite preview
There was a problem hiding this comment.
Stale comment
Risk: high. This PR is not approved: it adds SSR and static adapters across compiler, edge, and TanStack Start with a large runtime blast radius and new public framework APIs, which exceeds the low-risk threshold. Human review is needed and no reviewers were assigned.
Sent by Cursor Approval Agent: Pull Request Router
There was a problem hiding this comment.
Important
Changes requested. A relative path to the configured manifest still makes Vite preview return 500 for a materialized homepage and its localized chunks.
Reviewed changes in 6781b149 cover manifest loading during Vite preview.
- Updated missing-file detection. Preview now checks filesystem, ESM, and CommonJS lookup errors against candidate manifest paths in the client and relocated headers directories.
- Added a regression test. It verifies that a deleted JSON import allows the static page and chunk to load and that a missing release selector produces a 500.
The gt-edge build, package checks, typecheck, and all 742 tests passed.
gpt-6.2-astra | 𝕏
… detection in vite preview
There was a problem hiding this comment.
Stale comment
Risk: high. This PR is not approved: it adds SSR and static adapters across compiler, edge, and TanStack Start with a large runtime blast radius and new public framework surfaces, which is above the low-risk threshold. Human review is needed and no reviewers were assigned. Cursor Bugbot and Cursor Security Agent were not present after the first check poll.
Sent by Cursor Approval Agent: Pull Request Router
There was a problem hiding this comment.
Important
Changes requested. A CommonJS manifest provider in a workspace app can still make Vite preview return 500 for the materialized homepage and localized chunks.
Reviewed changes in 7c908a99 cover how Vite preview identifies a manifest removed by a static build.
- Replaced substring matching with exact comparisons. Preview now checks filesystem and module-loading errors against the configured client and relocated manifest paths.
- Verified the previous fix. A relative
readFileof the removed manifest allows static serving, and a missing.sha256sidecar still surfaces the provider error.
The gt-edge build, package checks, typecheck, and all 742 tests passed.
Non-blocking
- An apostrophe in the project path breaks ESM manifest detection. The parser stops at the apostrophe inside the filename. With a JSON import, both the homepage and the French chunk returned 500 under
app's filesand 200 under an ordinary directory name. Node supplied the complete target inerror.url, which can be converted withfileURLToPath. Error parser
gpt-6.2-astra | 𝕏
…ry in Vite preview
There was a problem hiding this comment.
Stale comment
Risk: high. Not approved. This adds SSR and static framework adapters across multiple packages with a large blast radius and new public interfaces, which is above the low-risk approval threshold. Human review is needed and no reviewers were assigned.
Sent by Cursor Approval Agent: Pull Request Router
There was a problem hiding this comment.
Important
Changes requested. Vite preview returns HTTP 500 for materialized pages and chunks when a CommonJS provider omits the manifest’s .json extension.
Reviewed changes in 429beecf cover how Vite preview handles a provider after static generation removes its manifest.
- Resolved relative CommonJS paths from the caller. Preview uses the requiring module’s directory and resolves symlinks before comparing filenames.
- Preserved apostrophes in module paths. A JSON import from a workspace path containing an apostrophe now lets Vite serve the materialized output.
- Added preview coverage. The new test exercises client and relocated manifests, a missing sidecar, and an unrelated missing file.
The gt-edge build, package checks, typecheck, and all 743 tests passed.
gpt-6.2-astra | 𝕏
…ires in Vite preview
There was a problem hiding this comment.
Risk: high. This PR is not approved: it is a large multi-package SSR adapter and compiler change that exceeds the low-risk threshold and adds public framework surfaces. Human review is needed and no reviewers were assigned. Cursor Bugbot and Cursor Security Agent were not present after the first check poll.
Sent by Cursor Approval Agent: Pull Request Router
There was a problem hiding this comment.
ℹ️ No blocking issues. The extensionless CommonJS manifest fix works in Vite preview.
Reviewed changes in aba7cb74 cover manifest providers after static materialization removes the private headers directory.
- Recognized CommonJS JSON lookups. Preview now serves materialized pages and chunks when a direct
require()omits.jsonor resolves a directory throughindex.json. - Extended the preview tests. The regression test checks the homepage, localized chunk, and private-header 404 with an extensionless provider. It also verifies that a missing
manifest.jssurfaces as HTTP 500.
The gt-edge build, package checks, typecheck, and all 743 tests passed.
Non-blocking
- Static preview can hide a broken package alias. With a
package.jsonimports alias pointing to./dist/client/_gt-headers/manifest, Node throwsMODULE_NOT_FOUNDeven whilemanifest.jsonexists because the alias target is exact. I verified that static preview returned HTTP 200 for this broken provider. Limit the extra JSON candidates to ordinary CommonJS file and directory lookups so package-map errors propagate. Vite adapter · Node resolution algorithm
gpt-6.2-astra | 𝕏



PR 3 of the
gt-edge/delivery: 'splice'stack. It stacks on #3095 (gt-edge/pr2-compiler-splice).What this adds
gt-edgeframework adapters (no runtime dependencies; each symbol is exported from one subpath)gt-edge/tanstack-start:createTanStackStartProxy({ store }). ItswrapFetch(handler.fetch)serves/_gt/*chunks, returns 404 for every spelling of/_gt-headers/*, and passes everything else to TanStack Start. When a document is rendered under a locale prefix (/fr/...), its streamed HTML is rewritten so each quoted chunk URL loads that locale's copy. That covers<script src>,modulepreload, inline dynamic imports, and the router state TanStack inlines into the page. NoVary: Cookieis added, because the URL already names the locale. The entry also exportslocalizeAssetUrl,rewriteSsrAssetTagsandwrapHtmlResponse. It imports nothing fromnode:*, andpurity.test.tsnow checksdist/tanstack-start.jsfor that.gt-edge/astro:createAstroMiddleware()is duck-typedonRequestmiddleware. By default it reads headers fromdist/server/gt, because Astro's SSR adapters servedist/clientbefore middleware runs.gtEdgeAstro({ mode })integration either emits static files (verify, materialize, write_headers, delete_gt-headers/) or, in SSR mode, moves the headers out of the client directory. It refuses aheadersRootinsidedist/client.gt-edge/gatsby:createGatsbyPlugin()givesonPostBuild, which emits static files by default, andonCreateDevServer, which mounts the Express middleware whenpublic/has a manifest.gt-edge/vite:gtEdgeVite()splices invite preview, reading from the client environment'soutDir. Optionally it runs a post-buildverifyorstaticemit on client builds.passthroughChunks(manifest addition, needed for zero-redirect SSR)With
hashStrategy: 'locale', a localized route chunk's relative imports (./i18n-config-*.js, vendor chunks) resolve under/_gt/fr/<localeHash>/. Before this change, untranslated chunks there returned 404. The manifest now lists them inpassthroughChunks, and the handler serves them unchanged (immutable, ETag, 304) only when the hash in the URL is that locale's single hash. The allowlist rule still holds. Validation requires that each locale have one hash, andmaterializeStaticandverifyBuildOutputhandle these chunks.gt-tanstack-startexperimentalCompilerOptions.delivery(typed asPick<GTUnpluginOptions, 'delivery'>) is passed through to the compiler.createCompilerPluginnow handles the compiler returningPlugin | Plugin[]and adapts each plugin.Compiler fixes found while running the real TanStack Start build
configResolvedruns once per environment. The last call (ssr) switched splicing off for the client, and the SSR bundle kept raw@gt/slot:strings. The splice hooks now readthis.environment: only the client environment splices, and server modules keep looking translations up per request.hashStrategy: 'locale', the build emitspassthroughChunks. SPA documents then point every chunk at the locale prefix, so they need no import map.hashStrategy: 'locale', the compiler setsexperimental.renderBuiltUrlto return{ relative: true }for JS chunks. Without it, Vite's__vite__mapDepspreloads absolute/assets/*.jsURLs, so localized pages also download the default-locale chunks. AnyrenderBuiltUrlthe user already set takes precedence.Real E2E:
tests/apps/tanstack-startcheck:spliceThe default
vite buildis unchanged; splicing turns on only whenGT_DELIVERY=splice. The script:{ mode: 'splice', hashStrategy: 'locale', routing: 'path', documents: false }and the locale-routing config. All 23 client files must be byte-identical across the two builds.const __gt=[...];\nheaders, no placeholders in client or server code, and thatverifyBuildOutputpasses.createTanStackStartProxy+createFsAssetStorein front of the built TanStack Start server. A spliced chunk is immutable with noVary, and its relative imports resolve with 0 redirects./_gt-headers/*returns 404./fr/ssrloads only/_gt/fr/<hash>/chunks and/ssrloads none./ssr,/fr/ssrand/fr/render the right text with 0 console or page errors. Every script returns 200 from its locale's prefix, including after a client navigation into the lazy/fr/ssrroute.Verification
CI=true pnpm exec turbo run build --filter=gt-edge --filter=@generaltranslation/compiler --filter=gt-tanstack-start --force --env-mode=loose(publint + attw): passgt-edge, compiler,gt-tanstack-startand the test app: passgt-edge560, compiler 1136,gt-tanstack-start174: passcheck:library-defaults,check:reexports,check:test-locations,check:src-entry-points,check:export-owners,oxlint,oxfmt --check .: passtests/apps/tanstack-startcheck:splice: pass. PR 2'stests/apps/vite-reactcheck:splicestill passes.Out of scope
gt-edge/client/liveSwitch(PR 4) andgt-edge/next(PR 5). Splice is reload-only, so a locale switch has to navigate.Confidence Score: 5/5

The requested passthrough fix appears safe to merge; no new actionable issue was established.Summary
This PR adds framework adapters for spliced translations and keeps untranslated JavaScript available under locale URLs.
Diagram
%%{init: {'theme': 'neutral'}}%% flowchart TD A[Request an older passthrough URL] --> B{File also listed in current passthroughChunks?} B -->|Yes| C[Read getFallbackAsset only] C --> D{Older copy found?} D -->|No| E[Redirect to current locale URL] D -->|Yes| F[Return older copy or 304] B -->|No| G[Use existing previous-file lookup]Reviews (4) · Last reviewed commit: "fix(edge): redirect fixed-name previous ..." · Reviewed by Greptile