27 lines
588 B
TypeScript
27 lines
588 B
TypeScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
import tailwindcss from "@tailwindcss/vite";
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
plugins: [tailwindcss(), react()],
|
|
server: {
|
|
allowedHosts: [
|
|
"hurricane-reverence-robin.ngrok-free.dev"
|
|
],
|
|
cors: true,
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://localhost:5000',
|
|
changeOrigin: true,
|
|
secure: false,
|
|
},
|
|
'/uploads': {
|
|
target: 'http://localhost:5000',
|
|
changeOrigin: true,
|
|
secure: false,
|
|
}
|
|
}
|
|
}
|
|
});
|