mirror of
https://github.com/sipeed/picoclaw.git
synced 2026-06-12 18:08:54 +00:00
3316ee6923
* feat(web): download attachments in frontend * fix: proxy pico media and force svg downloads * feat(web): hide ephemeral media refs from persisted session history
43 lines
856 B
TypeScript
43 lines
856 B
TypeScript
import path from "path"
|
|
|
|
import tailwindcss from "@tailwindcss/vite"
|
|
import { tanstackRouter } from "@tanstack/router-plugin/vite"
|
|
import react from "@vitejs/plugin-react"
|
|
import { defineConfig } from "vite"
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
plugins: [
|
|
tanstackRouter({
|
|
target: "react",
|
|
autoCodeSplitting: true,
|
|
}),
|
|
react(),
|
|
tailwindcss(),
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(__dirname, "./src"),
|
|
},
|
|
},
|
|
build: {
|
|
chunkSizeWarningLimit: 2048,
|
|
},
|
|
server: {
|
|
proxy: {
|
|
"/api": {
|
|
target: "http://localhost:18800",
|
|
changeOrigin: true,
|
|
},
|
|
"/pico/media": {
|
|
target: "http://localhost:18800",
|
|
changeOrigin: true,
|
|
},
|
|
"/pico/ws": {
|
|
target: "ws://localhost:18800",
|
|
ws: true,
|
|
},
|
|
},
|
|
},
|
|
})
|