ぼざクリ タグ広場 https://hub.nizika.monster
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

19 lines
576 B

  1. import { defineConfig } from 'vite'
  2. import react from '@vitejs/plugin-react'
  3. import path from 'path'
  4. // https://vite.dev/config/
  5. export default defineConfig ({
  6. plugins: [react()],
  7. resolve: { alias: { '@': path.resolve (__dirname, './src') } },
  8. server: { host: true,
  9. port: 5173,
  10. strictPort: true,
  11. allowedHosts: ['hub.nizika.monster', 'localhost'],
  12. proxy: { '/api': { target: 'http://localhost:3002',
  13. changeOrigin: true,
  14. secure: false } },
  15. watch: { usePolling: true,
  16. interval: 100 } } })