Fixed vite ssl.

This commit is contained in:
baldo 2022-07-14 11:26:43 +02:00
parent f7075533a0
commit 403a537869
3 changed files with 13 additions and 3 deletions

View file

@ -26,6 +26,7 @@
"@rushstack/eslint-patch": "^1.1.4", "@rushstack/eslint-patch": "^1.1.4",
"@types/jsdom": "^16.2.14", "@types/jsdom": "^16.2.14",
"@types/node": "^18.0.4", "@types/node": "^18.0.4",
"@vitejs/plugin-basic-ssl": "^0.1.1",
"@vitejs/plugin-vue": "^3.0.0", "@vitejs/plugin-vue": "^3.0.0",
"@vue/eslint-config-prettier": "^7.0.0", "@vue/eslint-config-prettier": "^7.0.0",
"@vue/eslint-config-typescript": "^11.0.0", "@vue/eslint-config-typescript": "^11.0.0",

View file

@ -1,17 +1,21 @@
import { fileURLToPath, URL } from "url"; import {fileURLToPath, URL} from "url";
import { defineConfig } from "vite"; import {defineConfig} from "vite";
import basicSsl from "@vitejs/plugin-basic-ssl";
import vue from "@vitejs/plugin-vue"; import vue from "@vitejs/plugin-vue";
// https://vitejs.dev/config/ // https://vitejs.dev/config/
export default defineConfig({ export default defineConfig({
plugins: [vue()], plugins: [basicSsl(), vue()],
resolve: { resolve: {
alias: { alias: {
"@": fileURLToPath(new URL("./src", import.meta.url)), "@": fileURLToPath(new URL("./src", import.meta.url)),
}, },
}, },
server: { server: {
https: true,
port: 3000,
strictPort: true,
proxy: { proxy: {
"/api/": { "/api/": {
target: "http://localhost:8080", target: "http://localhost:8080",

View file

@ -193,6 +193,11 @@
"@typescript-eslint/types" "5.25.0" "@typescript-eslint/types" "5.25.0"
eslint-visitor-keys "^3.3.0" eslint-visitor-keys "^3.3.0"
"@vitejs/plugin-basic-ssl@^0.1.1":
version "0.1.1"
resolved "https://registry.yarnpkg.com/@vitejs/plugin-basic-ssl/-/plugin-basic-ssl-0.1.1.tgz#f76514820b4b901c43885eb489088c04ad9eb5d0"
integrity sha512-UhfGAZ8HgIMEPktKF8k58Y1LSwuYs1i1O4HY8E+yiOoYM+rkaPFBZo1SOkRsZN8DZTw90Q+ZznPej1o/mtTisg==
"@vitejs/plugin-vue@^3.0.0": "@vitejs/plugin-vue@^3.0.0":
version "3.0.0" version "3.0.0"
resolved "https://registry.yarnpkg.com/@vitejs/plugin-vue/-/plugin-vue-3.0.0.tgz#7081e2b3fbe04e291bb85107b9fb57a1fa5e6aeb" resolved "https://registry.yarnpkg.com/@vitejs/plugin-vue/-/plugin-vue-3.0.0.tgz#7081e2b3fbe04e291bb85107b9fb57a1fa5e6aeb"