From 0eb7187ae62b9cf1e92195ac92e75006a9f2b71a Mon Sep 17 00:00:00 2001 From: Hk-Gosuto Date: Mon, 19 Feb 2024 16:27:36 +0800 Subject: [PATCH] fix: #194 --- app/api/cors/route.ts | 1 + app/components/exporter.tsx | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/api/cors/route.ts b/app/api/cors/route.ts index 4fadd2608e5..c885dad1637 100644 --- a/app/api/cors/route.ts +++ b/app/api/cors/route.ts @@ -35,3 +35,4 @@ export const GET = handle; export const OPTIONS = handle; export const runtime = "edge"; +export const revalidate = 0; diff --git a/app/components/exporter.tsx b/app/components/exporter.tsx index 1b9cc031c91..03100b7a640 100644 --- a/app/components/exporter.tsx +++ b/app/components/exporter.tsx @@ -465,7 +465,9 @@ export function ImagePreviewer(props: { const isApp = getClientConfig()?.isApp; try { - const blob = await toPng(dom); + const blob = await toPng(dom, { + includeQueryParams: true, + }); if (!blob) return; if (isMobile || (isApp && window.__TAURI__)) {