Skip to content

Commit 9a2ff98

Browse files
authored
Merge pull request #1641 from ksylvan/0721-web-timeout-fix
Fix Fabric Web timeout error
2 parents cc68ddd + a522d4a commit 9a2ff98

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
### PR [#1641](https://github.com/danielmiessler/Fabric/pull/1641) by [ksylvan](https://github.com/ksylvan): Fix Fabric Web timeout error
2+
3+
- Chore: extend proxy timeout in `vite.config.ts` to 15 minutes
4+
- Increase `/api` proxy timeout to 900,000 ms
5+
- Increase `/names` proxy timeout to 900,000 ms

web/vite.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export default defineConfig({
4444
'/api': {
4545
target: FABRIC_BASE_URL,
4646
changeOrigin: true,
47-
timeout: 30000,
47+
timeout: 900000,
4848
rewrite: (path) => path.replace(/^\/api/, ''),
4949
configure: (proxy, _options) => {
5050
proxy.on('error', (err, req, res) => {
@@ -59,7 +59,7 @@ export default defineConfig({
5959
'^/(patterns|models|sessions)/names': {
6060
target: FABRIC_BASE_URL,
6161
changeOrigin: true,
62-
timeout: 30000,
62+
timeout: 900000,
6363
configure: (proxy, _options) => {
6464
proxy.on('error', (err, req, res) => {
6565
console.log('proxy error', err);

0 commit comments

Comments
 (0)