Spaces:
Running
Running
File size: 576 Bytes
2471e68 61aec16 2471e68 61aec16 2471e68 531624f 2471e68 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import path from 'path'
// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
},
},
server: {
proxy: {
'/api': {
target: 'http://localhost:8000',
changeOrigin: true,
},
},
},
build: {
rollupOptions: {
input: {
main: path.resolve(__dirname, 'index.html'),
widget: path.resolve(__dirname, 'widget.html'),
},
},
},
})
|