mirror of
https://github.com/geoffsee/open-gsio.git
synced 2025-09-08 22:56:46 +00:00
**Refactor imports and improve type annotations**
- Adjusted import statements across the codebase to align with consistent use of `type`. - Unified usage of `EventSource` initialization. - Introduced `RootDeps` type for shared dependencies. - Commented out unused VitePWA configuration. - Updated proxy target URLs in Vite configuration.
This commit is contained in:
@@ -39,31 +39,31 @@ export default defineConfig(({command}) => {
|
||||
})
|
||||
})
|
||||
*/
|
||||
VitePWA({
|
||||
registerType: 'autoUpdate',
|
||||
devOptions: {
|
||||
enabled: false,
|
||||
},
|
||||
manifest: {
|
||||
name: "open-gsio",
|
||||
short_name: "open-gsio",
|
||||
description: "Assistant"
|
||||
},
|
||||
workbox: {
|
||||
globPatterns: ['**/*.{js,css,html,ico,png,svg}'],
|
||||
navigateFallbackDenylist: [/^\/api\//],
|
||||
}
|
||||
})
|
||||
// VitePWA({
|
||||
// registerType: 'autoUpdate',
|
||||
// devOptions: {
|
||||
// enabled: false,
|
||||
// },
|
||||
// manifest: {
|
||||
// name: "open-gsio",
|
||||
// short_name: "open-gsio",
|
||||
// description: "Assistant"
|
||||
// },
|
||||
// workbox: {
|
||||
// globPatterns: ['**/*.{js,css,html,ico,png,svg}'],
|
||||
// navigateFallbackDenylist: [/^\/api\//],
|
||||
// }
|
||||
// })
|
||||
],
|
||||
server: {
|
||||
port: 3000,
|
||||
proxy: {
|
||||
// proxies requests to worker backend
|
||||
"/api": {
|
||||
target: "http://localhost:3001",
|
||||
target: "http://localhost:3003",
|
||||
},
|
||||
"/fonts": {
|
||||
target: "http://localhost:3001/fonts",
|
||||
target: "http://localhost:3003/fonts",
|
||||
},
|
||||
},
|
||||
},
|
||||
|
Reference in New Issue
Block a user