1
0
Fork 0
mirror of https://github.com/binwiederhier/ntfy.git synced 2025-09-08 12:57:55 +02:00

Improve dynamic webmanifest setup

This commit is contained in:
nimbleghost 2023-06-19 20:41:41 +02:00
parent d7aacb8b24
commit 000a3e005c
3 changed files with 10 additions and 13 deletions

View file

@ -245,7 +245,10 @@ if (!import.meta.env.DEV) {
// this is so we don't respond to `/` UNLESS it's the app root itself, defined above
/^\/.+$/,
],
denylist: [/^\/docs\/?$/],
// only /docs is required so it is navigable in the browser.
// the rest are nice-to-haves so the single-page-app doesn't try to handle them, but `fetch`
// and browser requests would work anyway.
denylist: [/^\/(docs|static|file).*$/, /^\/(app.html|manifest.webmanifest|sw.js|config.js)$/],
})
);