add shenyan-app RN project + PWA push/noise updates
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user