fix: proxy archived 3d assets for browser loading
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled

This commit is contained in:
Your Name 2026-05-14 12:04:45 +08:00
parent dee8019efd
commit 2f5c2fca50
2 changed files with 3 additions and 0 deletions

View File

@ -10,6 +10,8 @@ const THREE_ASSET_BROWSER_CACHE_CONTROL =
function isAllowedModelHost(hostname: string) {
const normalized = hostname.toLowerCase();
return (
normalized === "bbyy.ai" ||
normalized.endsWith(".bbyy.ai") ||
normalized === "tripo3d.com" ||
normalized.endsWith(".tripo3d.com") ||
normalized.includes("worldlabs") ||

View File

@ -1,6 +1,7 @@
const THREE_ASSET_PROXY_PATH = "/api/canvas/3d/model-proxy";
const PROXY_HOST_KEYWORDS = [
"bbyy.ai",
"tripo3d.com",
"worldlabs",
"marble",