Files
BiliNote/BillNote_frontend
Jefferyhcool 517bf04720 feat(deploy): 添加 nginx 反向代理配置并优化前端构建流程
- 新增 nginx 配置模板,用于前端服务的反向代理
- 更新 Dockerfile,使用 pnpm 替代 npm 并添加 nginx 配置
- 添加启动脚本,实现后端健康检查和动态配置 nginx
- 更新 .env.example,为后端主机添加注释说明
- 优化 docker-compose.yml,明确版本号并调整服务依赖
2025-04-16 02:04:16 +08:00
..
2025-04-13 17:44:54 +08:00
2025-04-13 17:44:54 +08:00
2025-04-13 17:44:54 +08:00
2025-04-13 17:44:54 +08:00
2025-04-13 17:44:54 +08:00
2025-04-13 17:44:54 +08:00
2025-04-13 17:44:54 +08:00
2025-04-13 17:44:54 +08:00
2025-04-13 17:44:54 +08:00
2025-04-13 17:44:54 +08:00
2025-04-13 17:44:54 +08:00
2025-04-13 17:44:54 +08:00
2025-04-13 17:44:54 +08:00
2025-04-13 17:44:54 +08:00
2025-04-13 17:44:54 +08:00

React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:

export default tseslint.config({
  extends: [
    // Remove ...tseslint.configs.recommended and replace with this
    ...tseslint.configs.recommendedTypeChecked,
    // Alternatively, use this for stricter rules
    ...tseslint.configs.strictTypeChecked,
    // Optionally, add this for stylistic rules
    ...tseslint.configs.stylisticTypeChecked,
  ],
  languageOptions: {
    // other options...
    parserOptions: {
      project: ['./tsconfig.node.json', './tsconfig.app.json'],
      tsconfigRootDir: import.meta.dirname,
    },
  },
})

You can also install eslint-plugin-react-x and eslint-plugin-react-dom for React-specific lint rules:

// eslint.config.js
import reactX from 'eslint-plugin-react-x'
import reactDom from 'eslint-plugin-react-dom'

export default tseslint.config({
  plugins: {
    // Add the react-x and react-dom plugins
    'react-x': reactX,
    'react-dom': reactDom,
  },
  rules: {
    // other rules...
    // Enable its recommended typescript rules
    ...reactX.configs['recommended-typescript'].rules,
    ...reactDom.configs.recommended.rules,
  },
})