douyinWEB/desktop/vite.config.ts
eric 1112a4d055 Handle YouTube Video Uploads daily quota (429) with project budget and pause-until-reset.
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>
2026-08-11 02:04:44 -05:00

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"],
},
},
},
},
});