vite.config.ts 294 B

12345678910111213141516
  1. import { defineConfig } from 'vite'
  2. import react from '@vitejs/plugin-react'
  3. import path from 'path'
  4. export default defineConfig({
  5. plugins: [react()],
  6. resolve: {
  7. alias: {
  8. '@': path.resolve(__dirname, './src'),
  9. },
  10. },
  11. server: {
  12. port: 3001,
  13. host: '0.0.0.0',
  14. },
  15. })