vite.config.ts 616 B

12345678910111213141516171819202122232425262728
  1. import { defineConfig } from '@vben/vite-config';
  2. import { version } from './package.json' with { type: 'json' };
  3. export default defineConfig(async () => {
  4. return {
  5. application: {
  6. archiver: true,
  7. archiverPluginOptions: {
  8. name: `six.zycc-${version}-dist`,
  9. outputDir: '../../output',
  10. },
  11. },
  12. vite: {
  13. server: {
  14. proxy: {
  15. '/manager': {
  16. target: 'https://wx.hzliuzhi.com:4433',
  17. secure: false,
  18. changeOrigin: true,
  19. logLevel: 'debug',
  20. ws: true,
  21. },
  22. },
  23. },
  24. },
  25. };
  26. });