vite.config.js 310 B

123456789101112131415
  1. import { defineConfig } from 'vite'
  2. import vue from '@vitejs/plugin-vue'
  3. export default defineConfig({
  4. plugins: [vue()],
  5. server: {
  6. proxy: {
  7. '/api': {
  8. target: 'https://cinema.kolei.ru',
  9. changeOrigin: true,
  10. rewrite: (path) => path.replace(/^\/api/, '')
  11. }
  12. }
  13. }
  14. })