Skip to content

Commit 3604b9e

Browse files
paulbalajiclaude
andcommitted
fix: use nodejs runtime for OG API route
Edge runtime doesn't allow dynamic code evaluation which is used by @hyperlane-xyz/utils. Switch to nodejs runtime for compatibility. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 6de9434 commit 3604b9e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/pages/api/og.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ interface WarpTransferDetails {
3737
// ============================================================================
3838

3939
export const config = {
40-
runtime: 'edge',
40+
runtime: 'nodejs',
41+
// Use max duration for OG image generation
42+
maxDuration: 30,
4143
};
4244

4345
// Global font cache to avoid reloading on every request

0 commit comments

Comments
 (0)