ぼざクリタグ広場 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.
 
 
 
 
 
 

20 lines
679 B

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