fix: resolve typescript error and lint warnings
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 10s
Build & Deploy / 🧪 QA (push) Successful in 2m5s
Build & Deploy / 🏗️ Build (push) Successful in 5m22s
Build & Deploy / 🚀 Deploy (push) Successful in 19s
Build & Deploy / 🧪 Post-Deploy Verification (push) Failing after 4m42s
Build & Deploy / 🔔 Notify (push) Successful in 2s

- Fix TS2698 in JsonLd.tsx (spread types)
- Clean up unused variable in analytics route
This commit is contained in:
2026-04-12 22:42:04 +02:00
parent 64ec24f8b2
commit 7cb3763125
2 changed files with 3 additions and 3 deletions

View File

@@ -27,7 +27,7 @@ export async function POST(request: NextRequest) {
let body;
try {
body = await request.json();
} catch (parseError) {
} catch (_parseError) {
logger.warn('Received malformed or empty JSON in analytics proxy');
return NextResponse.json({ status: 'ignored_bad_payload' }, { status: 200 });
}

View File

@@ -47,9 +47,9 @@ export default function JsonLd({ id, data }: JsonLdProps) {
// Ensure @context is present and correctly typed for consumer libraries
if (!item['@context']) {
return {
...item,
...(item as Record<string, any>),
'@context': 'https://schema.org',
};
} as WithContext<Thing>;
}
return item;
});