Skip to content

⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.

small fix

daniel31x13a05fbd714128
diff --git a/apps/web/pages/api/v1/rss/index.ts b/apps/web/pages/api/v1/rss/index.ts
index 38088f43..54d172e4 100644
--- a/apps/web/pages/api/v1/rss/index.ts
+++ b/apps/web/pages/api/v1/rss/index.ts
@@ -31,6 +31,13 @@ export default async function handler(
}
if (req.method === "POST") {
+ if (process.env.NEXT_PUBLIC_DEMO === "true") {
+ return res.status(400).json({
+ response:
+ "This action is disabled because this is a read-only demo of Linkwarden.",
+ });
+ }
+
const dataValidation = PostRssSubscriptionSchema.safeParse(req.body);
if (!dataValidation.success) {