Skip to content

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

minor fix

daniel31x13225288c742f7
diff --git a/pages/api/v1/highlights/index.ts b/pages/api/v1/highlights/index.ts
index 15d7f012..daf7c945 100644
--- a/pages/api/v1/highlights/index.ts
+++ b/pages/api/v1/highlights/index.ts
@@ -11,6 +11,12 @@ export default async function highlights(
if (!user) return;
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 = PostHighlightSchema.safeParse(req.body);
if (!dataValidation.success) {