52 lines
1.4 KiB
TypeScript
52 lines
1.4 KiB
TypeScript
import type { MetadataRoute } from 'next'
|
|
|
|
function manifest(): MetadataRoute.Manifest {
|
|
return {
|
|
name: 'Trump Alpha',
|
|
short_name: 'Trump Alpha',
|
|
description:
|
|
'Four crypto alpha feeds, one dashboard. Trump signals, BTC on-chain, KOL analysis, talks-vs-trades.',
|
|
start_url: '/en',
|
|
display: 'standalone',
|
|
background_color: '#0a0907',
|
|
theme_color: '#f5a524',
|
|
orientation: 'portrait-primary',
|
|
categories: ['finance', 'utilities'],
|
|
// Icons sourced from Next's dynamic generators (app/icon.tsx,
|
|
// app/apple-icon.tsx) — no static PNG asset required. `sizes: 'any'` lets
|
|
// the install prompt accept whatever resolution the OS asks for since
|
|
// ImageResponse renders at any size we declare in those files.
|
|
icons: [
|
|
{
|
|
src: '/icon',
|
|
sizes: 'any',
|
|
type: 'image/png',
|
|
purpose: 'any',
|
|
},
|
|
{
|
|
src: '/apple-icon',
|
|
sizes: '180x180',
|
|
type: 'image/png',
|
|
purpose: 'maskable',
|
|
},
|
|
],
|
|
screenshots: [
|
|
{
|
|
src: '/opengraph-image',
|
|
sizes: '1200x630',
|
|
type: 'image/png',
|
|
form_factor: 'wide',
|
|
label: 'Trump Alpha dashboard',
|
|
},
|
|
],
|
|
}
|
|
}
|
|
|
|
export default function handler(
|
|
_req: import('next').NextApiRequest,
|
|
res: import('next').NextApiResponse,
|
|
) {
|
|
res.setHeader('Content-Type', 'application/manifest+json')
|
|
res.json(manifest())
|
|
}
|