A very performant and light (2mb in memory) link shortener and tracker. Written in Rust and React and uses Postgres/SQLite.
1import { defineConfig } from 'vite' 2import react from '@vitejs/plugin-react' 3import tailwindcss from '@tailwindcss/vite' 4import path from "path" 5 6export default defineConfig(() => ({ 7 plugins: [react(), tailwindcss()], 8 server: { 9 proxy: { 10 '/api': { 11 target: process.env.VITE_API_URL || 'http://localhost:8080', 12 changeOrigin: true, 13 }, 14 }, 15 }, 16 resolve: { 17 alias: { 18 "@": path.resolve(__dirname, "./src"), 19 }, 20 }, 21}))