File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,9 @@ A free instance is hosted at: [rssfetch.vercel.app](https://rssfetch.vercel.app)
2020- This project can also be deployed to Cloudflare Workers, but requires some manual setup.
2121- Follow the instructions in the [ Elysia Cloudflare Workers documentation] ( https://elysiajs.com/integrations/cloudflare-worker.html ) .
2222
23+ ### Docker
24+ - Docker images are available on [ GHCR] ( https://github.com/mikndotdev/rssfetch/pkgs/container/rssfetch ) .
25+
2326## Manual Setup
2427
25281 . Install dependencies:
Original file line number Diff line number Diff line change 1- import { Elysia , t } from 'elysia' ;
1+ import { Elysia , redirect , t } from 'elysia' ;
22import { cors } from '@elysiajs/cors'
33import { XMLParser } from 'fast-xml-parser' ;
44
@@ -27,6 +27,11 @@ interface RSSFeed {
2727 } ;
2828}
2929
30+ app . onError ( ( { code, error } ) => {
31+ if ( code === 'VALIDATION' )
32+ return redirect ( "https://docs.mikn.dev/solutions/developers/rssfetch/" )
33+ } )
34+
3035app . get ( '/' , async ( { query, set } ) => {
3136 try {
3237 const response = await fetch ( query . url ) ;
You can’t perform that action at this time.
0 commit comments