add shenyan-app RN project + PWA push/noise updates

This commit is contained in:
2026-05-13 17:38:35 +08:00
parent 66f94f0fcf
commit 4d7110c58d
82 changed files with 14677 additions and 124 deletions

View File

@@ -3,10 +3,20 @@ import react from '@vitejs/plugin-react'
import { VitePWA } from 'vite-plugin-pwa'
export default defineConfig({
server: {
proxy: {
'/api': 'http://localhost:3001',
'/memory': 'http://localhost:3001',
'/push': 'http://localhost:3001',
},
},
plugins: [
react(),
VitePWA({
registerType: 'autoUpdate',
strategies: 'injectManifest',
srcDir: 'src',
filename: 'sw.ts',
manifest: {
name: 'Elec',
short_name: 'Elec',