MVP 1.0
This commit is contained in:
1 parent
be11f82f84
commit
e42f751fdc
47 files changed
+3359
-301
No files matched your search
@@ -24,8 +24,8 @@ export default defineConfig({
|
||||
globPatterns: ['**/*.{js,css,html,svg}'],
|
||||
runtimeCaching: [{
|
||||
urlPattern: /^\/api\//,
|
||||
handler: 'NetworkFirst',
|
||||
options: { cacheName: 'api-cache', expiration: { maxEntries: 50 } }
|
||||
handler: 'NetworkOnly',
|
||||
options: { cacheName: 'api-cache' }
|
||||
}]
|
||||
}
|
||||
})
|
||||
@@ -33,6 +33,12 @@ export default defineConfig({
|
||||
server: {
|
||||
port: 5188,
|
||||
strictPort: true,
|
||||
proxy: { '/api': 'http://127.0.0.1:8018' }
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: 'http://127.0.0.1:8018',
|
||||
timeout: 600000,
|
||||
proxyTimeout: 600000
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
Reference in new issue
Block a user