这是indexloc提供的服务,不要输入任何密码
Skip to content

Fix prebuilt deployment bugs #281

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 6, 2025
Merged

Conversation

dglsparsons
Copy link
Collaborator

@dglsparsons dglsparsons commented Mar 6, 2025

There were three bugs with prebuilt deployments:

  • The path_prefix was incorrectly trimmed before attempting to read
    .vercel/output/build.json, which led to issues reading the file.
  • The logic for walking the output directory did not account for the
    filePathMap field in the vc-config.json files for functions, which
    indicate which additional files should be included in the deployment.
  • We resolved symlinks when walking the output directory, but to prevent
    uploading too many of the same files over and over, we should just
    upload these as a symlink directly. This is doubly relevant as there
    are many symlinks in the filePathMap.

Ref #236

There were three bugs with prebuilt deployments:
- The path_prefix was incorrectly trimmed before attempting to read
  `.vercel/output/build.json`, which led to issues reading the file.
- The logic for walking the output directory did not account for the
  `filePathMap` field in the `vc-config.json` files for functions, which
  indicate which additional files should be included in the deployment.
- We resolved symlinks when walking the output directory, but to prevent
  uploading too many of the same files over and over, we should just
  upload these as a symlink directly. This is doubly relevant as there
  are many symlinks in the `filePathMap`.
@dglsparsons dglsparsons merged commit a9ddee1 into main Mar 6, 2025
6 checks passed
@dglsparsons dglsparsons deleted the dgls/fix-prebuilt-deployment branch March 6, 2025 17:09
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.

2 participants