vite.config.ts 529 B

12345678910111213141516171819202122232425
  1. import { fileURLToPath, URL } from 'node:url';
  2. import { defineConfig } from 'vite';
  3. import vue from '@vitejs/plugin-vue';
  4. // https://vitejs.dev/config/
  5. export default defineConfig({
  6. plugins: [vue()],
  7. server: {
  8. port: 20001,
  9. proxy: {
  10. '/api/live/v0': {
  11. target: 'http://broadcast.waityou24.cn',
  12. },
  13. '/api/util/dbInit': {
  14. target: 'http://broadcast.waityou24.cn',
  15. },
  16. },
  17. },
  18. resolve: {
  19. alias: {
  20. '@': fileURLToPath(new URL('./src', import.meta.url)),
  21. },
  22. },
  23. });