⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.
TypeScript bookmarkbookmark-managercollaborationnextjsreact-nativeread-it-laterself-hostedtypescript
feat(web): optimization
daniel31x13d870ffecd171
diff --git a/apps/web/lib/api/controllers/links/getLinks.ts b/apps/web/lib/api/controllers/links/getLinks.tsindex ae709904..fdfade3c 100644--- a/apps/web/lib/api/controllers/links/getLinks.ts+++ b/apps/web/lib/api/controllers/links/getLinks.ts@@ -2,6 +2,13 @@ import { prisma } from "@linkwarden/prisma";import { LinkRequestQuery, Order, Sort } from "@linkwarden/types";export default async function getLink(userId: number, query: LinkRequestQuery) {+ if (process.env.DISABLE_DEPRECATED_ROUTES === "true")+ return {+ response:+ "This route is deprecated, please use the new /api/v1/search route instead, for more info please refer to the api documentation.",+ status: 400,+ };+const POSTGRES_IS_ENABLED =process.env.DATABASE_URL?.startsWith("postgresql");diff --git a/apps/web/package.json b/apps/web/package.jsonindex 0fbbfb1e..c385ebd8 100644--- a/apps/web/package.json+++ b/apps/web/package.json@@ -1,6 +1,6 @@{"name": "@linkwarden/web",- "version": "v2.11.5",+ "version": "v2.11.6","main": "index.js","repository": "https://github.com/linkwarden/linkwarden.git","author": "Daniel31X13 <[email protected]>",