19 lines
526 B
TypeScript
19 lines
526 B
TypeScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
import tailwindcss from '@tailwindcss/vite'
|
|
|
|
export default defineConfig({
|
|
// Supports either a dedicated hostname or a reverse-proxy prefix such as
|
|
// `/pim_frontend/`. Vite requires a trailing slash for sub-path deployments.
|
|
base: process.env.VITE_BASE_PATH || '/',
|
|
plugins: [react(), tailwindcss()],
|
|
server: {
|
|
proxy: {
|
|
'/uploads': {
|
|
target: 'http://localhost:5002',
|
|
changeOrigin: true,
|
|
},
|
|
},
|
|
},
|
|
})
|