Skip to content

fix(e2e): support standard Vite build output in serve-built-remix#25

Merged
vianmora merged 1 commit into
developfrom
fix/builder-e2e-serve-path
Jun 17, 2026
Merged

fix(e2e): support standard Vite build output in serve-built-remix#25
vianmora merged 1 commit into
developfrom
fix/builder-e2e-serve-path

Conversation

@vianmora

Copy link
Copy Markdown
Collaborator

Problem

builder-e2e CI fails on all PRs based on develop since vite.config.ts was updated to skip vercelPreset() for non-Vercel builds (commit 222769e06).

serve-built-remix.ts expected the Vercel preset build format:

build/server/<hash>/index.js

Without vercelPreset(), Vite produces the standard Remix output:

build/server/index.js       ← entry
build/server/assets/        ← server-side chunks

The script found assets/ as the first subdirectory and tried to import assets/index.jsERR_MODULE_NOT_FOUND.

Fix

Check for build/server/index.js directly first (standard Vite format); fall back to the hash-subdirectory scan for Vercel preset builds.

Test plan

  • builder-e2e job passes on this PR

serve-built-remix.ts expected the Vercel preset build format
(build/server/<hash>/index.js). Since vite.config.ts skips vercelPreset()
for non-Vercel builds, the output is now build/server/index.js directly,
with build/server/assets/ as a subdirectory — causing the script to try
to import assets/index.js (ERR_MODULE_NOT_FOUND).

Check for index.js at the root of build/server/ first; fall back to the
hash-subdirectory format for Vercel preset builds.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@vianmora vianmora merged commit b5ee26d into develop Jun 17, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant