29 lines
587 B
TypeScript
29 lines
587 B
TypeScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
import path from 'path' // <-- dodajesz to
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
assetsInclude: ['**/*.md'],
|
|
server: {
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://localhost:8000',
|
|
changeOrigin: true,
|
|
}
|
|
},
|
|
watch: {
|
|
usePolling: true,
|
|
interval: 100,
|
|
}
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, './src') // <-- poprawione
|
|
}
|
|
},
|
|
optimizeDeps: {
|
|
include: ['@uiw/react-md-editor']
|
|
}
|
|
})
|