mirror of
				https://github.com/remvze/moodist.git
				synced 2025-10-30 18:22:27 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			37 lines
		
	
	
		
			932 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			37 lines
		
	
	
		
			932 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| import { defineConfig } from 'astro/config';
 | |
| 
 | |
| import react from '@astrojs/react';
 | |
| import AstroPWA from '@vite-pwa/astro';
 | |
| 
 | |
| export default defineConfig({
 | |
|   integrations: [
 | |
|     react(),
 | |
|     AstroPWA({
 | |
|       manifest: {
 | |
|         background_color: '#09090b',
 | |
|         description: 'Ambient sounds for focus and calm.',
 | |
|         display: 'standalone',
 | |
|         icons: [
 | |
|           ...[72, 128, 144, 152, 192, 256, 512].map(size => ({
 | |
|             sizes: `${size}x${size}`,
 | |
|             src: `/assets/pwa/${size}.png`,
 | |
|             type: 'image/png',
 | |
|           })),
 | |
|         ],
 | |
|         name: 'Moodist',
 | |
|         orientation: 'any',
 | |
|         scope: '/',
 | |
|         short_name: 'Moodist',
 | |
|         start_url: '/',
 | |
|         theme_color: '#09090b',
 | |
|       },
 | |
|       registerType: 'prompt',
 | |
|       workbox: {
 | |
|         globPatterns: ['**/*'],
 | |
|         maximumFileSizeToCacheInBytes: Number.MAX_SAFE_INTEGER,
 | |
|         navigateFallback: '/',
 | |
|       },
 | |
|     }),
 | |
|   ],
 | |
| });
 |