diff --git a/.env.sample b/.env.sample index d2a8d60..ad56075 100644 --- a/.env.sample +++ b/.env.sample @@ -20,6 +20,7 @@ MAX_LINKS_PER_USER= ARCHIVE_TAKE_COUNT= BROWSER_TIMEOUT= IGNORE_UNAUTHORIZED_CA= +IGNORE_HTTPS_ERRORS= # AWS S3 Settings SPACES_KEY= diff --git a/components/SettingsSidebar.tsx b/components/SettingsSidebar.tsx index bcd1644..9e629dd 100644 --- a/components/SettingsSidebar.tsx +++ b/components/SettingsSidebar.tsx @@ -4,7 +4,7 @@ import { useRouter } from "next/router"; import React, { useEffect, useState } from "react"; export default function SettingsSidebar({ className }: { className?: string }) { - const LINKWARDEN_VERSION = "v2.4.8"; + const LINKWARDEN_VERSION = "v2.4.9"; const { collections } = useCollectionStore(); diff --git a/lib/api/archiveHandler.ts b/lib/api/archiveHandler.ts index 60ea790..88ff97e 100644 --- a/lib/api/archiveHandler.ts +++ b/lib/api/archiveHandler.ts @@ -21,7 +21,11 @@ const BROWSER_TIMEOUT = Number(process.env.BROWSER_TIMEOUT) || 5; export default async function archiveHandler(link: LinksAndCollectionAndOwner) { const browser = await chromium.launch(); - const context = await browser.newContext(devices["Desktop Chrome"]); + const context = await browser.newContext({ + ...devices["Desktop Chrome"], + ignoreHTTPSErrors: + process.env.IGNORE_HTTPS_ERRORS === "true", + }); const page = await context.newPage(); const timeoutPromise = new Promise((_, reject) => { diff --git a/package.json b/package.json index 20934ff..8e741fc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "linkwarden", - "version": "2.4.8", + "version": "2.4.9", "main": "index.js", "repository": "https://github.com/linkwarden/linkwarden.git", "author": "Daniel31X13 ",