October 5, 2024
LOCALHOST+HTTPS+VITE
Шаг-1
1.Установить vite-plugin-mkcert пакет.
Шаг-2
import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' import mkcert from 'vite-plugin-mkcert' // https://vitejs.dev/config/ export default defineConfig({ plugins: [react(),mkcert()], server:{ port:3000, https: true } })