mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 16:59:12 +00:00
fix(web/pwa): do not intercept api route (#952)
* fix(PWA): Don't intercept /api route * remove proxy * revert proxy * actual revert * Delete setupProxy.js
This commit is contained in:
parent
6c27c6e3ba
commit
76387d16f6
2 changed files with 3 additions and 13 deletions
|
@ -1,11 +0,0 @@
|
||||||
const { createProxyMiddleware } = require("http-proxy-middleware");
|
|
||||||
|
|
||||||
module.exports = function(app) {
|
|
||||||
app.use(
|
|
||||||
"/api",
|
|
||||||
createProxyMiddleware({
|
|
||||||
target: "http://127.0.0.1:7474",
|
|
||||||
changeOrigin: true,
|
|
||||||
})
|
|
||||||
);
|
|
||||||
};
|
|
|
@ -66,7 +66,8 @@ export default ({ mode }: { mode: any }) => {
|
||||||
},
|
},
|
||||||
workbox: {
|
workbox: {
|
||||||
globPatterns: ["**/*.{js,css,html,svg}"],
|
globPatterns: ["**/*.{js,css,html,svg}"],
|
||||||
sourcemap: true
|
sourcemap: true,
|
||||||
|
navigateFallbackDenylist: [/^\/api/]
|
||||||
}
|
}
|
||||||
})],
|
})],
|
||||||
resolve: {
|
resolve: {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue