vite.config.mts 404 B

12345678910111213141516171819
  1. import { defineConfig } from '@vben/vite-config';
  2. export default defineConfig(async () => {
  3. return {
  4. application: {},
  5. vite: {
  6. server: {
  7. proxy: {
  8. '/api': {
  9. changeOrigin: true,
  10. rewrite: (path) => path.replace(/^\/api/, ''),
  11. target: 'https://merchant.w115.net',
  12. // ws: true,
  13. },
  14. },
  15. },
  16. },
  17. };
  18. });