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
12 lines
242 B
JavaScript
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: []
|
|
}
|
|
}]
|
|
})
|
|
}
|