# user-client **Repository Path**: user_9/user-client ## Basic Information - **Project Name**: user-client - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-01-21 - **Last Updated**: 2026-01-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 部署说明 ## 1. 构建项目 ```bash npm run build ``` ## 2. 部署到Nginx ### 配置文件示例 ```nginx server { listen 80; server_name your-domain.com; root /path/to/dist; index index.html; # 解决路由刷新404问题 location / { try_files $uri $uri/ /index.html; } # 接口代理 location /api { proxy_pass http://localhost:8080; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; } } ``` ## 3. 部署到Apache ### .htaccess配置 ```apache RewriteEngine On RewriteBase / RewriteRule ^index\.html$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.html [L] ``` ## 4. 部署到IIS ### web.config配置 ```xml ```