All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.vite.config.js Maven / Gradle / Ivy

import { defineConfig } from 'vite'

export default defineConfig({
    server: {
      port: 4000,
      proxy: {
        '/mock': {
          target: 'http://localhost:3000/',
          changeOrigin: true,
          rewrite: (path) => path.replace(/^\/mock/, ''),
        },
      },
    },
  })




© 2015 - 2025 Weber Informatics LLC | Privacy Policy