[#922] Fix Vercel deploy: change OG route from Edge to Node.js runtime#923
Merged
realproject7 merged 1 commit intomainfrom Apr 21, 2026
Merged
[#922] Fix Vercel deploy: change OG route from Edge to Node.js runtime#923realproject7 merged 1 commit intomainfrom
realproject7 merged 1 commit intomainfrom
Conversation
PR #896 refactored lib/usd-price.ts to use Promise.any() for parallel price fetching and added a DB fallback import. This caused the Edge bundler (Turbopack) to include mint.club-v2-sdk in the Edge bundle, which Vercel rejects as an unsupported module. The OG image route doesn't need Edge runtime — switching to Node.js resolves the deploy failure that has blocked all deployments since Apr 15. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
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.
Summary
export const runtime = "edge"to"nodejs"insrc/app/story/[storylineId]/og/route.tsxmint.club-v2-sdkwhich is unsupported in the Edge runtimeRoot Cause
PR #896 refactored
lib/usd-price.ts:import { createServiceRoleClient } from "./supabase"(DB fallback)fetchFromMintClub()function called viaPromise.any()The OG route imports
getPlotUsdPricefromusd-price.ts. The Edge bundler (Turbopack) can no longer tree-shake themint.club-v2-sdkdynamic import through the new function indirection, so it bundles it — and Vercel rejects it.Test plan
npm run typecheckpassesnpm run lintpasses (0 errors)grepconfirmed)/story/[id]/og)Fixes #922
🤖 Generated with Claude Code