feat: add PWA support with manifest, icons, and theme color management

This commit is contained in:
hamster1963
2025-02-13 11:21:53 +08:00
parent b298d91aa1
commit d4f6db436a
8 changed files with 119 additions and 0 deletions

View File

@@ -1,5 +1,6 @@
import react from "@vitejs/plugin-react-swc"
import { execSync } from "child_process"
import fs from "fs"
import path from "path"
import { defineConfig } from "vite"
@@ -26,6 +27,10 @@ export default defineConfig({
},
},
server: {
https: {
key: fs.readFileSync("./.cert/key.pem"),
cert: fs.readFileSync("./.cert/cert.pem"),
},
proxy: {
"/api/v1/ws/server": {
target: "ws://localhost:8008",