Files
furyhawk 358baece76 feat: initialize frontend with React, Vite, and Tailwind CSS
- Add package.json with dependencies and scripts for development and build
- Create PostCSS configuration for Tailwind CSS and autoprefixer
- Implement main App component with chat functionality and message handling
- Create API module for sending messages to backend
- Add global CSS file with Tailwind directives and custom scrollbar styles
- Set up entry point for React application in main.tsx
- Define TypeScript environment types for Vite
- Configure Tailwind CSS with content paths
- Set up TypeScript configuration with strict settings
- Configure Vite with React plugin and API proxy for development
2026-06-12 17:07:26 +08:00

16 lines
283 B
TypeScript

import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
export default defineConfig({
plugins: [react()],
server: {
port: 5173,
proxy: {
"/api": {
target: "http://localhost:8000",
changeOrigin: true,
},
},
},
});