Karolis' playground dv-svelte / master vite.config.ts
master

Tree @master (Download .tar.gz)

vite.config.ts @masterraw · history · blame

import { defineConfig } from 'vite'
import { svelte } from '@sveltejs/vite-plugin-svelte'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [svelte()],
  server:{
    proxy:{
      '/api':{
        target: 'http://localhost:7245',
        rewrite:(path)=>path.replace(/^\/api/, '')

      }
    }
  }
})