Files
hn-reader/vite.config.ts
T
privatecloud builder 95bef8bf7b
CI / build (push) Successful in 2m0s
Build hn-reader: keyboard-driven Hacker News reader
Vite/React + shadcn/ui frontend with Superhuman-style keyboard nav
(j/k/o/v/e/s/u, feed switching, localStorage caching for instant
loads) backed by an Express API that polls the HN Firebase API into
Postgres and serves cached feeds/comments. Instrumented with
OpenTelemetry (traces/metrics/logs via OTLP/HTTP).
2026-07-25 12:16:08 +00:00

25 lines
496 B
TypeScript

import path from 'path'
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import tailwindcss from '@tailwindcss/vite'
// https://vite.dev/config/
export default defineConfig({
plugins: [react(), tailwindcss()],
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
},
},
server: {
port: 3012,
strictPort: true,
proxy: {
'/api': {
target: 'http://localhost:3013',
changeOrigin: true,
},
},
},
})