Repository navigation
Fix the Vercel build: keep internal imports out of the function file - #12
Merged
Merged
Conversation
Vercel compiles api/exnode.go as a package outside this module, and Go refuses its imports of internal/ packages, so the first deploy failed. The server construction moves to package hosted, which may import internal/; the function file now imports only hosted. Verified on a preview deployment: a mainnet bundle served by it is byte-identical to a locally built one and verifies against all ten tier-1 organizations. Also ignore .vercel, the CLI's local project link.
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.
The first production deploy from #11 failed. Vercel compiles
api/exnode.goas a package outside this module, and Go refuses that package's imports ofinternal/:The server construction moves to a public package,
hosted, which can importinternal/. The function file now imports onlyhosted, and its tests move with it.Checked
go vet,go test ./..., and golangci-lint (0 issues).6e8d3346…is byte-identical to a locally built one, andexternalize verifyaccepts it: 30 validators, all 10 tier-1 organizations.