Publish Fast Tabler Docker image / build-and-push-fast (push) Successful in 1m24s
21 lines
441 B
JavaScript
21 lines
441 B
JavaScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
server: {
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://localhost:3001',
|
|
changeOrigin: true,
|
|
secure: false,
|
|
},
|
|
},
|
|
// Отключаем кеширование в dev режиме
|
|
headers: {
|
|
'Cache-Control': 'no-store',
|
|
},
|
|
},
|
|
})
|