Skip to content

fix(network-config): preserve Vercel function archive paths#341

Merged
Zeryther merged 1 commit into
mainfrom
codex/vercel-build-output-archive-paths
Jul 20, 2026
Merged

fix(network-config): preserve Vercel function archive paths#341
Zeryther merged 1 commit into
mainfrom
codex/vercel-build-output-archive-paths

Conversation

@Zeryther

@Zeryther Zeryther commented Jul 20, 2026

Copy link
Copy Markdown
Member

Preserves each Build Output v3 function directory in the generated archive file map so the declared handler path exists at runtime. Includes regression coverage for explicit and derived file maps.

Summary by CodeRabbit

  • Bug Fixes
    • Preserved Vercel function directory paths when preparing deployment archives.
    • Improved generated file mappings for serverless functions, including fallback functions and runtime assets.
    • Ensured route handlers and entry points reference the correct packaged files.

@vercel

vercel Bot commented Jul 20, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
sdk-harmony Ready Ready Preview, Comment Jul 20, 2026 9:40pm

Request Review

@changeset-bot

changeset-bot Bot commented Jul 20, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 1ba4b4c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@gigadrive/network-config Patch
gigadrive Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@coderabbitai

coderabbitai Bot commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 97be3748-3468-479b-aaf8-ac28c11d7120

📥 Commits

Reviewing files that changed from the base of the PR and between fedc505 and 1ba4b4c.

📒 Files selected for processing (3)
  • .changeset/curvy-ravens-smile.md
  • packages/network-config/src/services/vercel-build-output-parser.test.ts
  • packages/network-config/src/services/vercel-build-output-parser.ts

📝 Walkthrough

Walkthrough

The Vercel Build Output parser now preserves project and function directory paths in generated archive mappings. Tests cover configured and fallback functions, and a Changesets entry declares a patch release for @gigadrive/network-config.

Changes

Vercel function path mapping

Layer / File(s) Summary
Rewrite function archive mappings
packages/network-config/src/services/vercel-build-output-parser.ts
loadFunctions prefixes configured mapping keys with projectFolder and mapping values with functionDirectory, including default fallback mappings.
Validate preserved function directories
packages/network-config/src/services/vercel-build-output-parser.test.ts, .changeset/curvy-ravens-smile.md
Tests verify configured and fallback mappings retain function directories, while the Changesets entry declares a patch release.

Estimated code review effort: 2 (Simple) | ~10 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the main change: preserving Vercel function archive paths in network-config.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/vercel-build-output-archive-paths

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Zeryther
Zeryther merged commit 95253c2 into main Jul 20, 2026
13 checks passed
@Zeryther
Zeryther deleted the codex/vercel-build-output-archive-paths branch July 20, 2026 21:43
@github-actions github-actions Bot mentioned this pull request Jul 20, 2026
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