stacker.news/pages/api/web-app-origin-association.js
SatsAllDay e6ee7f73c4
Make the web manifest dynamic to incorporate preferred color scheme (#398)
Remove the static manifest file and serve it via an API route instead.

Change the background color of the PWA depending on the client hint provided data
2023-08-15 12:58:27 -05:00

12 lines
242 B
JavaScript

export default function handler (req, res) {
return res.status(200).json({
web_apps: [{
manifest: 'https://stacker.news/api/site.webmanifest',
details: {
paths: ['*'],
exclude_paths: []
}
}]
})
}