Files
RSSFeed/web/vite.config.ts
TMCandClaude Opus 5.5 1cc99df9bb
Release / build (push) Successful in 1m25s
Build RSSFeed: self-hosted Croatian news feed with a local LLM
Merges RSS/Atom/JSON sources into one feed. A local OpenAI-compatible
LLM filters articles against plain-language negatives, groups reports
of the same event into stories, and writes a one-sentence Croatian
title and a description of at most two sentences for each story.
Original articles are only ever linked as published.

- Pipeline: fetch, dedupe, Readability extraction, keyword + AI triage
  with exceptions and learned corrections, embedding clustering with an
  LLM same-event check, summary with format check and Croatian
  language guard, regeneration for developing stories
- Neutral importance scoring with coverage boost and manual override
- Feed controls: Live or Editions, daily/category/source limits,
  breaking bypass, 7-day preview; daily digest with offline fallback
- Circuit breaker that pauses and resumes the queue on LLM outages
- Express 5 + node:sqlite server, React 19 + Vite web UI (dark, PWA)
- Feeds under /feeds/ for a single Pangolin rule; optional feed token
- Dockerfile runs typecheck and the full test suite before building;
  Gitea workflow builds, scans and pushes the image

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 10:58:32 +01:00

23 lines
675 B
TypeScript

import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
// Dev server proxies the API and the feeds to the local RSSFeed backend so the browser
// only ever talks to one origin. In production Express serves the built assets itself
// (single-port app). The base is absolute because the UI uses history routes such as
// /story/12, where relative asset URLs would resolve under the route.
export default defineConfig({
base: '/',
plugins: [react()],
server: {
port: 5173,
proxy: {
'/api': 'http://127.0.0.1:34500',
'/feeds': 'http://127.0.0.1:34500',
},
},
build: {
outDir: 'dist',
emptyOutDir: true,
},
});