import { resolve } from "node:path" import tailwindcss from "@tailwindcss/vite" import { tanstackRouter } from "@tanstack/router-plugin/vite" import react from "@vitejs/plugin-react" import { defineConfig } from "vite" // The dashboard. In development the API and the screenshots come from the // server on :8080 (`npm run dev -w server`); in production the server hosts // the built files itself. export default defineConfig({ plugins: [tanstackRouter({ target: "react", autoCodeSplitting: true }), react(), tailwindcss()], resolve: { alias: { "@": resolve(import.meta.dirname, "./src"), }, }, server: { proxy: { "/api": "http://127.0.0.1:8080", "/shots": "http://127.0.0.1:8080", }, }, })