Files
voicebox/landing/src/app/api/releases/route.ts
T
Jamie Pine b4b3762ef0 Update global styles and enhance landing page layout
- Added overflow-x hidden to prevent horizontal scrolling on html and body elements.
- Centered the heading and paragraph text on the landing page for improved aesthetics.
- Introduced a mobile-friendly centered screenshot above download buttons.
- Updated comments for clarity regarding screenshot positioning on different devices.
2026-01-25 21:06:41 -08:00

19 lines
529 B
TypeScript

import { NextResponse } from 'next/server';
import { getLatestRelease } from '@/lib/releases';
export const dynamic = 'force-dynamic';
export const revalidate = 600; // Revalidate every 10 minutes
export async function GET() {
try {
const releaseInfo = await getLatestRelease();
return NextResponse.json(releaseInfo);
} catch (error) {
console.error('Error fetching release info:', error);
return NextResponse.json(
{ error: 'Failed to fetch release information' },
{ status: 500 }
);
}
}