Logo

GitLab

Sign in

朱子纯 / test2

  • Back to Dashboard
  • Project
  • Activity
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • Snippets
  • test2
  • frontend
  • vite.config.ts
  • chore(frontend): scaffold Vite + React + TS app with auth/usr pages ...
    c0103bcb
    Initial frontend setup: Vite + React 19 + TypeScript, ESLint,
    Redux store (auth, tabs), React Router with RequireAuth guard,
    AppShell layout, TopBar/NavOverlay components, plus first-pass
    pages (Login, Dashboard, UserList, UserDetail) and API layer
    (request/types/usr) wired to the user backend module.
    
    Establishes the frontend foundation so future module loops can
    add their own pages under frontend/src/pages/<module>/ per
    docs/08 path convention.
    zichun authored
    2026-05-07 17:30:48 +0800  
    Browse Code »
vite.config.ts 390 Bytes
Edit Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import path from 'node:path'

export default defineConfig({
  plugins: [react()],
  resolve: {
    alias: {
      '@': path.resolve(__dirname, 'src'),
    },
  },
  server: {
    port: 5173,
    proxy: {
      '/api': {
        target: 'http://localhost:8080',
        changeOrigin: true,
      },
    },
  },
})