mirror of
https://github.com/jamiepine/voicebox.git
synced 2026-09-18 22:30:40 -07:00
- 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.
19 lines
529 B
TypeScript
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 }
|
|
);
|
|
}
|
|
}
|