Skip to content

Commit ba018cd

Browse files
committed
fix: Resolve build pipeline failures (TS types and NextJS bundle issues)
1 parent d81f5e4 commit ba018cd

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

app/api/streak/png/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export async function GET(request: Request) {
3535
headers.set('Cache-Control', cacheControl);
3636
}
3737

38-
return new NextResponse(pngBuffer, {
38+
return new NextResponse(pngBuffer as unknown as BodyInit, {
3939
status: 200,
4040
headers,
4141
});

lib/svg/generator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type { BadgeParams, ContributionCalendar, StreakStats, MonthlyStats } fro
44
import { getLabels, type BadgeLabels } from '../i18n/badgeLabels';
55
import { AUTO_THEME_DARK, AUTO_THEME_LIGHT } from './themes';
66
import { TOWER_ANIMATION_CSS } from './animations';
7-
import { computeTowers, projectIsometric, type TowerData } from './layout';
7+
import { computeTowers, type TowerData } from './layout';
88
import { sanitizeFont, sanitizeHexColor, sanitizeRadius, sanitizeGoogleFontUrl } from './sanitizer';
99

1010
import { SVG_WIDTH, SVG_HEIGHT, FONT_MAP, isFontKey } from './generatorConstants';

next.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type { NextConfig } from 'next';
33
const nextConfig: NextConfig = {
44
// Prevent Turbopack from bundling next/og through its shared module context,
55
// which causes the "Next.js package not found" HMR panic on dynamic routes.
6-
serverExternalPackages: ['next/og'],
6+
serverExternalPackages: ['next/og', '@resvg/resvg-js'],
77
// Allow the local network IP to access dev resources without cross-origin warnings
88
allowedDevOrigins: ['172.31.128.1'],
99
devIndicators: false,

0 commit comments

Comments
 (0)