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: [
8 react(),
9 tailwindcss(),
10 ],
11 server: {
12 proxy: {
13 '/api': {
14 target: 'http://localhost:8080',
15 changeOrigin: true,
16 },
17 },
18 },
19 resolve: {
20 alias: {
21 "@": path.resolve(__dirname, "./src"),
22 },
23 },
24})
25