import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' import tailwindcss from '@tailwindcss/vite' export default defineConfig({ // Set VITE_BASE_PATH=/hotels/ when the site is mounted on a sub-path, so // that asset URLs in the built HTML resolve against it. base: process.env.VITE_BASE_PATH ?? '/', plugins: [react(), tailwindcss()], build: { outDir: 'dist/client', emptyOutDir: true, assetsInlineLimit: 0, }, server: { port: 5174, proxy: { '/api': { target: 'http://localhost:3001', changeOrigin: true }, }, }, })