Files
short/vite.config.ts
traberphandClaude Opus 5.5 b217214512 v2: rewrite on Hono + SQLite with user namespaces
Replaces the Next.js/Prisma/next-auth app with a single-container
Hono server, SQLite via Drizzle, OIDC login against Authentik and a
React/Vite admin UI that talks to a JSON API.

- users get /<username>/<code>, admins (Authentik group) get root
  codes, pinning and full access
- link pages with link and Markdown text blocks, themes, avatars
- editable 302 redirects, random or custom codes
- personal API tokens, CSRF-protected cookie sessions
- privacy-friendly stats: daily-rotating visitor salt, 90-day click
  retention with daily totals kept
- QR codes as PNG/SVG
- tests for permissions, auth, redirects and stats; CI runs them
  before publishing images

See REQUIREMENTS.md for the full requirement list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 13:57:47 +02:00

23 lines
558 B
TypeScript

import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import tailwindcss from "@tailwindcss/vite";
// The admin UI lives under /~/ and is served by the Hono server in production.
export default defineConfig({
root: "src/web",
base: "/~/",
plugins: [react(), tailwindcss()],
build: {
outDir: "../../dist/web",
emptyOutDir: true,
},
server: {
port: 5173,
proxy: {
"/~/api": "http://localhost:3000",
"/~/auth": "http://localhost:3000",
"/~/media": "http://localhost:3000",
},
},
});