fix: vite config and routes to support no slashes, and api interceptor for fetch (#3824)

* Fix vite config and routes to support no slashes

* Added fetch intercept to add custom headers into fetch calls
This commit is contained in:
Lucas Oliveira 2024-09-16 15:42:08 -03:00 committed by GitHub
commit 3e11d8a64d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 26 additions and 6 deletions

View file

@ -48,6 +48,7 @@
"elkjs": "^0.9.3",
"emoji-regex": "^10.3.0",
"esbuild": "^0.21.5",
"fetch-intercept": "^2.4.0",
"file-saver": "^2.0.5",
"framer-motion": "^11.2.10",
"fuse.js": "^7.0.0",
@ -8617,6 +8618,12 @@
"node": "^12.20 || >= 14.13"
}
},
"node_modules/fetch-intercept": {
"version": "2.4.0",
"resolved": "https://registry.npmjs.org/fetch-intercept/-/fetch-intercept-2.4.0.tgz",
"integrity": "sha512-BPZ2LM9Dh1ua2ovQf03N6rhWg1qxdVD5qK/G4llvcemt6M+jjxCuIDxJ+6IiG+uz//3UQmgfKEv0gOGvYIxZ7g==",
"license": "MIT"
},
"node_modules/fetch-retry": {
"version": "6.0.0",
"resolved": "https://registry.npmjs.org/fetch-retry/-/fetch-retry-6.0.0.tgz",