23 lines
506 B
JavaScript
23 lines
506 B
JavaScript
|
import { defineConfig } from 'vite'
|
||
|
import react from '@vitejs/plugin-react'
|
||
|
|
||
|
// https://vitejs.dev/config/
|
||
|
export default defineConfig({
|
||
|
plugins: [react()],
|
||
|
build: {
|
||
|
sourcemap: true,
|
||
|
commonjsOptions: {
|
||
|
// https://github.com/rollup/plugins/tree/master/packages/commonjs
|
||
|
transformMixedEsModules: true
|
||
|
}
|
||
|
},
|
||
|
server: {
|
||
|
proxy: {
|
||
|
'^(\/graphql|\/auth\/login|\/profiles)': {
|
||
|
target: 'https://learngerman.dw.com',
|
||
|
changeOrigin: true,
|
||
|
}
|
||
|
},
|
||
|
},
|
||
|
})
|