Update index.html and vite.config.ts for dynamic app name and manifest adjustments

- Replace static app name in index.html and use environment variable for dynamic title
- Update Vite configuration to reflect new app name and description
- Modify manifest icons for better clarity and organization
- Remove deprecated logo asset from the project

This commit enhances the app's configurability and aligns with the new branding strategy.
This commit is contained in:
padreug 2025-09-06 18:59:44 +02:00
parent 553bee51bb
commit c655ce7702
13 changed files with 24 additions and 39 deletions

View file

@ -17,7 +17,7 @@ export default defineConfig(({ mode }) => ({
devOptions: {
enabled: true
},
strategies: 'injectManifest',
// strategies: 'injectManifest',
srcDir: 'public',
filename: 'sw.js',
workbox: {
@ -25,48 +25,35 @@ export default defineConfig(({ mode }) => ({
'**/*.{js,css,html,ico,png,svg}'
]
},
includeAssets: ['favicon.ico', 'apple-touch-icon.png', 'mask-icon.svg'],
includeAssets: [
'favicon.ico',
'apple-touch-icon.png',
'mask-icon.svg',
// optional: include the icon PNGs explicitly if you also reference them directly
'icon-192.png',
'icon-512.png',
'icon-maskable-192.png',
'icon-maskable-512.png',
],
manifest: {
name: 'Ario - Nostr Community Hub',
short_name: 'Ario',
description: 'Nostr-based community platform with Lightning Network integration for events and announcements',
name: 'AIO - Community Hub',
short_name: 'AIO',
description: 'Nostr-based community platform with Lightning Network integration for events, market and announcements',
theme_color: '#1f2937',
background_color: '#ffffff',
display: 'standalone',
orientation: 'portrait-primary',
start_url: '/',
scope: '/',
id: 'ario-nostr-hub',
id: 'aio-community-hub',
categories: ['social', 'utilities'],
lang: 'en',
icons: [
{
src: 'pwa-192x192.png',
sizes: '192x192',
type: 'image/png',
purpose: 'any'
},
{
src: 'pwa-512x512.png',
sizes: '512x512',
type: 'image/png',
purpose: 'any'
},
{
src: 'pwa-512x512.png',
sizes: '512x512',
type: 'image/png',
purpose: 'maskable'
}
"icons": [
{ "src": "/icon-192.png", "sizes": "192x192", "type": "image/png", "purpose": "any" },
{ "src": "/icon-512.png", "sizes": "512x512", "type": "image/png", "purpose": "any" },
{ "src": "/icon-maskable-192.png", "sizes": "192x192", "type": "image/png", "purpose": "maskable" },
{ "src": "/icon-maskable-512.png", "sizes": "512x512", "type": "image/png", "purpose": "maskable" }
],
screenshots: [
{
src: 'splash.png',
sizes: '1080x1920',
type: 'image/png',
form_factor: 'narrow'
}
]
}
}),
Inspect(),