Fixed vite ssl.
This commit is contained in:
parent
f7075533a0
commit
403a537869
3 changed files with 13 additions and 3 deletions
|
@ -26,6 +26,7 @@
|
|||
"@rushstack/eslint-patch": "^1.1.4",
|
||||
"@types/jsdom": "^16.2.14",
|
||||
"@types/node": "^18.0.4",
|
||||
"@vitejs/plugin-basic-ssl": "^0.1.1",
|
||||
"@vitejs/plugin-vue": "^3.0.0",
|
||||
"@vue/eslint-config-prettier": "^7.0.0",
|
||||
"@vue/eslint-config-typescript": "^11.0.0",
|
||||
|
|
|
@ -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";
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [vue()],
|
||||
plugins: [basicSsl(), vue()],
|
||||
resolve: {
|
||||
alias: {
|
||||
"@": fileURLToPath(new URL("./src", import.meta.url)),
|
||||
},
|
||||
},
|
||||
server: {
|
||||
https: true,
|
||||
port: 3000,
|
||||
strictPort: true,
|
||||
proxy: {
|
||||
"/api/": {
|
||||
target: "http://localhost:8080",
|
||||
|
|
|
@ -193,6 +193,11 @@
|
|||
"@typescript-eslint/types" "5.25.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":
|
||||
version "3.0.0"
|
||||
resolved "https://registry.yarnpkg.com/@vitejs/plugin-vue/-/plugin-vue-3.0.0.tgz#7081e2b3fbe04e291bb85107b9fb57a1fa5e6aeb"
|
||||
|
|
Loading…
Reference in a new issue