vite.config.ts.timestamp-1728457351127-898e9fbc0b3b8.mjs 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. // vite.config.ts
  2. import { defineConfig, loadEnv } from "file:///D:/baozhida/baozhida-panel-module/node_modules/.pnpm/vite@5.3.5_@types+node@20.14.13_sass@1.77.8/node_modules/vite/dist/node/index.js";
  3. import vue from "file:///D:/baozhida/baozhida-panel-module/node_modules/.pnpm/@vitejs+plugin-vue@5.1.1_vite@5.3.5_@types+node@20.14.13_sass@1.77.8__vue@3.4.35_typescript@5.4.5_/node_modules/@vitejs/plugin-vue/dist/index.mjs";
  4. import { resolve } from "path";
  5. var __vite_injected_original_dirname = "D:\\baozhida\\baozhida-panel-module";
  6. var pathSrc = resolve(__vite_injected_original_dirname, "src");
  7. var vite_config_default = defineConfig(({ mode }) => {
  8. const config = loadEnv(mode, "./");
  9. return {
  10. plugins: [
  11. vue()
  12. ],
  13. server: {
  14. port: 5e3,
  15. proxy: {
  16. "/api": {
  17. target: "http://192.168.11.77:8888",
  18. changeOrigin: true,
  19. rewrite: (path) => {
  20. return path.replace(/\/api/, "/api");
  21. }
  22. },
  23. "/app": {
  24. target: "http://192.168.11.77:8080",
  25. changeOrigin: true,
  26. rewrite: (path) => {
  27. return path.replace(/\/app/, "/api");
  28. }
  29. }
  30. }
  31. },
  32. resolve: {
  33. alias: {
  34. "@": pathSrc
  35. }
  36. }
  37. };
  38. });
  39. export {
  40. vite_config_default as default
  41. };
  42. //# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJEOlxcXFxiYW96aGlkYVxcXFxiYW96aGlkYS1wYW5lbC1tb2R1bGVcIjtjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfZmlsZW5hbWUgPSB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