Skip to content
Snippets Groups Projects
vite.config.ts 519 B
Newer Older
  • Learn to ignore specific revisions
  • Bastien DUMONT's avatar
    wip
    Bastien DUMONT committed
    import basicSsl from '@vitejs/plugin-basic-ssl'
    import react from '@vitejs/plugin-react-swc'
    import { defineConfig } from 'vite'
    
    // https://vitejs.dev/config/
    export default defineConfig({
    
    Bastien DUMONT's avatar
    Bastien DUMONT committed
      base: './',
    
    Bastien DUMONT's avatar
    wip
    Bastien DUMONT committed
      plugins: [react(), basicSsl()],
      preview: {
    
    Bastien DUMONT's avatar
    Bastien DUMONT committed
        // port: 3000,
        // https: true,
        // strictPort: true,
    
    Bastien DUMONT's avatar
    wip
    Bastien DUMONT committed
      },
      server: {
        port: 3000,
        https: true,
        strictPort: true,
    
    Bastien DUMONT's avatar
    Bastien DUMONT committed
        host: true,
    
    Bastien DUMONT's avatar
    Bastien DUMONT committed
        open: 'https://localhost/', // directly opens site through nginx
    
    Bastien DUMONT's avatar
    wip
    Bastien DUMONT committed
      },
      build: {
        outDir: './build',
      },
    })