From 07b7268da40d1d900e6cbb0b031abf8d5c2591c1 Mon Sep 17 00:00:00 2001 From: jamerrq Date: Sat, 16 Mar 2024 21:14:08 -0500 Subject: [PATCH] fix (sw): service worker fixes --- astro.config.ts | 2 +- public/{img/icons => }/favicon.ico | Bin public/img/icons/manifest.json | 14 +++++++------- tsconfig.json | 3 ++- 4 files changed, 10 insertions(+), 9 deletions(-) rename public/{img/icons => }/favicon.ico (100%) diff --git a/astro.config.ts b/astro.config.ts index df4a058..8a099dc 100644 --- a/astro.config.ts +++ b/astro.config.ts @@ -49,7 +49,7 @@ export default defineConfig({ registerType: 'autoUpdate', manifest, workbox: { - globDirectory: 'dist', + globDirectory: 'dist/client', globPatterns: [ '**/*.{js,css,svg,png,jpg,jpeg,gif,webp,woff,woff2,ttf,eot,ico}' ], diff --git a/public/img/icons/favicon.ico b/public/favicon.ico similarity index 100% rename from public/img/icons/favicon.ico rename to public/favicon.ico diff --git a/public/img/icons/manifest.json b/public/img/icons/manifest.json index 0a84c36..d53f183 100644 --- a/public/img/icons/manifest.json +++ b/public/img/icons/manifest.json @@ -1,7 +1,7 @@ { - "name": "My App", - "description": "My App description", - "short_name": "My App", + "name": "jamerrq.dev", + "description": "Jamer José Desarrollo Web y Backend", + "short_name": "jamerrq.dev", "icons": [ { "src": "/favicon-72x72.png", @@ -54,7 +54,7 @@ ], "scope": "/", "start_url": "/?source=pwa", - "display": "standalone", - "theme_color": "#ffffff", - "background_color": "#ffffff" -} \ No newline at end of file + "display": "fullscreen", + "theme_color": "#0f0f0f", + "background_color": "#0f0f0f" +} diff --git a/tsconfig.json b/tsconfig.json index 6a50336..890c816 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,7 +3,8 @@ "exclude": [ "node_modules", "dist", - "astro.config.ts" + "astro.config.ts", + "public/prism.js" ], "compilerOptions": { "baseUrl": ".",