Add shorts_yt_quota module, Shorts UI quota banner, overview tweaks (hide upcoming opens, align events panel height), Electron desktop client scaffold, and deploy scripts; update README. Co-authored-by: Cursor <cursoragent@cursor.com>
36 lines
777 B
TypeScript
36 lines
777 B
TypeScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
import path from "node:path";
|
|
|
|
const apiTarget = process.env.DY_DESKTOP_API || "http://127.0.0.1:8014";
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(__dirname, "src"),
|
|
},
|
|
},
|
|
server: {
|
|
host: "127.0.0.1",
|
|
port: 5173,
|
|
strictPort: true,
|
|
proxy: {
|
|
"/api": { target: apiTarget, changeOrigin: true },
|
|
"/covers": { target: apiTarget, changeOrigin: true },
|
|
},
|
|
},
|
|
build: {
|
|
outDir: "dist",
|
|
emptyOutDir: true,
|
|
rollupOptions: {
|
|
output: {
|
|
manualChunks: {
|
|
echarts: ["echarts"],
|
|
vendor: ["react", "react-dom", "react-router-dom"],
|
|
},
|
|
},
|
|
},
|
|
},
|
|
});
|