From e698f99d6ebb947e809e4e1088918dd8340473b2 Mon Sep 17 00:00:00 2001 From: James Johnson Date: Sat, 9 Jul 2022 21:26:03 -0500 Subject: [PATCH] add https cert and key to quiet vite ping noise see: https://github.com/laravel/vite-plugin/issues/27 --- vite.config.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/vite.config.js b/vite.config.js index 01ccdf9d..67f0d33f 100644 --- a/vite.config.js +++ b/vite.config.js @@ -1,3 +1,4 @@ +import { readFileSync } from "fs"; import { defineConfig } from "vite"; import laravel from "laravel-vite-plugin"; import vue from "@vitejs/plugin-vue"; @@ -21,4 +22,10 @@ export default defineConfig({ "@creator": "/resources/camino-creator", }, }, + server: { + https: { + key: readFileSync("./.cert/key.pem"), + cert: readFileSync("./.cert/cert.pem"), + }, + }, });