Skip to content
Snippets Groups Projects
vite.config.ts 546 B
Newer Older
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({
  base: './',
  plugins: [react(), basicSsl()],
  preview: {
    // port: 3000,
    // https: true,
    // strictPort: true,
  },
  server: {
    port: 3000,
    https: true,
    strictPort: true,
    host: true,
    open: 'https://localhost/', // directly opens site through nginx
  },
  build: {
    outDir: './build',
    assetsDir: './static',