update android

This commit is contained in:
Tom (plebeius.eth)
2025-05-13 14:19:28 +02:00
parent 7f676a3f4a
commit dda404fa40
6 changed files with 146 additions and 141 deletions
+9 -6
View File
@@ -35,12 +35,16 @@ export default defineConfig({
include: ['crypto', 'stream', 'util', 'buffer', 'events'],
}),
VitePWA({
strategies: 'generateSW',
registerType: 'autoUpdate',
includeAssets: ['favicon.ico', 'robots.txt', 'apple-touch-icon.png'],
injectManifest: {
maximumFileSizeToCacheInBytes: 6000000,
},
manifest: {
name: 'Seedit',
short_name: 'Seedit',
description: 'A GUI for plebbit similar to old.reddit',
name: 'plebchan',
short_name: 'plebchan',
description: 'A GUI for plebbit similar to 4chan',
theme_color: '#ffffff',
background_color: '#ffffee',
display: 'standalone',
@@ -67,10 +71,9 @@ export default defineConfig({
clientsClaim: true,
skipWaiting: true,
cleanupOutdatedCaches: true,
navigateFallback: 'index.html',
navigateFallbackDenylist: [/^\/api/, /^\/_(.*)/],
navigateFallbackDenylist: [/^\/api/, /^\/_\(.*\)/],
maximumFileSizeToCacheInBytes: 6000000,
runtimeCaching: [
// Fix index.html not refreshing on new versions
{