-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
70 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
frontend/vite.config.js.timestamp-1700478551891-52f5515102b65.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
// vite.config.js | ||
import react from "file:///home/aaronkable/allianceserver/working/allianceauth-auth-stats/frontend/node_modules/@vitejs/plugin-react-swc/index.mjs"; | ||
import { defineConfig } from "file:///home/aaronkable/allianceserver/working/node_modules/vite/dist/node/index.js"; | ||
|
||
var vite_config_default = defineConfig({ | ||
base: "./", | ||
plugins: [react()], | ||
server: { | ||
port: 3002, | ||
}, | ||
build: { | ||
sourcemap: true, | ||
manifest: true, | ||
outDir: "build/static/", | ||
rollupOptions: { | ||
output: { | ||
manualChunks(id) { | ||
if (id.includes("react-router-dom") || id.includes("react-router")) { | ||
return "@react-router"; | ||
} | ||
if ( | ||
id.includes("react-query") || | ||
id.includes("react-select") || | ||
id.includes("javascript-time-ago") | ||
) { | ||
return "@libs"; | ||
} | ||
}, | ||
}, | ||
}, | ||
proxy: { | ||
"/reports/api": { | ||
target: "http://localhost:8000", | ||
changeOrigin: true, | ||
secure: false, | ||
configure: (proxy, _options) => { | ||
proxy.on("error", (err, _req, _res) => { | ||
console.log("proxy error", err); | ||
}); | ||
proxy.on("proxyReq", (proxyReq, req, _res) => { | ||
console.log("Sending Request to the Target:", req.method, req.url); | ||
}); | ||
proxy.on("proxyRes", (proxyRes, req, _res) => { | ||
console.log("Received Response from the Target:", proxyRes.statusCode, req.url); | ||
}); | ||
}, | ||
}, | ||
}, | ||
}, | ||
}); | ||
export { vite_config_default as default }; | ||
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcuanMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCIvaG9tZS9hYXJvbmthYmxlL2FsbGlhbmNlc2VydmVyL3dvcmtpbmcvYWxsaWFuY2VhdXRoLWF1dGgtc3RhdHMvZnJvbnRlbmRcIjtjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfZmlsZW5hbWUgPSBcIi9ob21lL2Fhcm9ua2FibGUvYWxsaWFuY2VzZXJ2ZXIvd29ya2luZy9hbGxpYW5jZWF1dGgtYXV0aC1zdGF0cy9mcm9udGVuZC92aXRlLmNvbmZpZy5qc1wiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9pbXBvcnRfbWV0YV91cmwgPSBcImZpbGU6Ly8vaG9tZS9hYXJvbmthYmxlL2FsbGlhbmNlc2VydmVyL3dvcmtpbmcvYWxsaWFuY2VhdXRoLWF1dGgtc3RhdHMvZnJvbnRlbmQvdml0ZS5jb25maWcuanNcIjtpbXBvcnQgcmVhY3QgZnJvbSBcIkB2aXRlanMvcGx1Z2luLXJlYWN0LXN3Y1wiO1xuaW1wb3J0IHsgZGVmaW5lQ29uZmlnIH0gZnJvbSBcInZpdGVcIjtcblxuZXhwb3J0IGRlZmF1bHQgZGVmaW5lQ29uZmlnKHtcbiAgYmFzZTogXCIuL1wiLFxuICBwbHVnaW5zOiBbcmVhY3QoKV0sXG4gIHNlcnZlcjoge1xuICAgIHBvcnQ6IDMwMDIsXG4gIH0sXG4gIGJ1aWxkOiB7XG4gICAgc291cmNlbWFwOiB0cnVlLFxuICAgIG1hbmlmZXN0OiB0cnVlLFxuICAgIG91dERpcjogXCJidWlsZC9zdGF0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