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, strictPort: true, host: true, open: 'https://localhost/', }, server: { port: 3000, strictPort: true, host: true, open: 'https://localhost/', // directly opens site through nginx }, build: { outDir: './build', assetsDir: './static', }, })