stacker.news/pages/api/web-app-origin-association.js
ekzyis e97509eea7
Use PWA with display: standalone (#292)
* Use next-pwa

* Use standalone + back button

* Use Notification API

* Use custom service worker

* Use url_handlers

* Add offline page

* Use smaller icon in notification

* Only prompt for notifications if logged in

* small enhancements to standalone pwa

* remove unused back arrow

---------

Co-authored-by: ekzyis <ek@stacker.news>
Co-authored-by: keyan <keyan.kousha+huumn@gmail.com>
2023-05-31 17:28:33 -05:00

12 lines
238 B
JavaScript

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