From 62d4084dcfd24a44d2813560ba850bf7a1071c03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Brandner?= Date: Wed, 12 Jul 2023 13:55:21 +0200 Subject: [PATCH] Add support for accessing the web server from other devices MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Šimon Brandner --- package.json | 1 + vite.config.js | 2 ++ yarn.lock | 5 +++++ 3 files changed, 8 insertions(+) diff --git a/package.json b/package.json index af5e240b..d70395d7 100644 --- a/package.json +++ b/package.json @@ -48,6 +48,7 @@ "@types/grecaptcha": "^3.0.4", "@types/sdp-transform": "^2.4.5", "@use-gesture/react": "^10.2.11", + "@vitejs/plugin-basic-ssl": "^1.0.1", "@vitejs/plugin-react": "^4.0.1", "classnames": "^2.3.1", "color-hash": "^2.0.1", diff --git a/vite.config.js b/vite.config.js index 70d9fb8f..bbebd667 100644 --- a/vite.config.js +++ b/vite.config.js @@ -19,6 +19,7 @@ import svgrPlugin from "vite-plugin-svgr"; import htmlTemplate from "vite-plugin-html-template"; import sentryVitePlugin from "@sentry/vite-plugin"; import react from "@vitejs/plugin-react"; +import basicSsl from "@vitejs/plugin-basic-ssl"; // https://vitejs.dev/config/ export default defineConfig(({ mode }) => { @@ -26,6 +27,7 @@ export default defineConfig(({ mode }) => { const plugins = [ react(), + basicSsl(), svgrPlugin(), htmlTemplate.default({ data: { diff --git a/yarn.lock b/yarn.lock index e608357b..1b0ad142 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4328,6 +4328,11 @@ dependencies: "@use-gesture/core" "10.2.16" +"@vitejs/plugin-basic-ssl@^1.0.1": + version "1.0.1" + resolved "https://registry.yarnpkg.com/@vitejs/plugin-basic-ssl/-/plugin-basic-ssl-1.0.1.tgz#48c46eab21e0730921986ce742563ae83fe7fe34" + integrity sha512-pcub+YbFtFhaGRTo1832FQHQSHvMrlb43974e2eS8EKleR3p1cDdkJFPci1UhwkEf1J9Bz+wKBSzqpKp7nNj2A== + "@vitejs/plugin-react@^1.0.8": version "1.3.2" resolved "https://registry.yarnpkg.com/@vitejs/plugin-react/-/plugin-react-1.3.2.tgz#2fcf0b6ce9bcdcd4cec5c760c199779d5657ece1"