Skip to content

Commit 780d6c1

Browse files
committed
feat: DOcker docs and docs redirect
1 parent 291adab commit 780d6c1

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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

2528
1. Install dependencies:

src/index.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Elysia, t } from 'elysia';
1+
import {Elysia, redirect, t} from 'elysia';
22
import { cors } from '@elysiajs/cors'
33
import { 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+
3035
app.get('/', async ({ query, set }) => {
3136
try {
3237
const response = await fetch(query.url);

0 commit comments

Comments
 (0)