Files
noahspan-flying/client/vite.config.ts
noahspannbauer 5a1e24a1ce
All checks were successful
Main / changes (push) Successful in 26s
Main / build-and-test (push) Successful in 5m58s
Main / deploy (push) Successful in 2m33s
updating version to 2.1.5
2026-05-31 05:51:16 -05:00

28 lines
529 B
TypeScript

import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import tailwindcss from '@tailwindcss/vite'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
react(),
tailwindcss()
],
preview: {
port: 8080,
strictPort: true
},
server: {
host: true,
port: 8080,
proxy: {
'/api': {
target: 'http://localhost:3000',
changeOrigin: true,
secure: false,
rewrite: (path) => path.replace(/^\/api/, '')
}
}
}
});