【发布时间】:2021-02-10 08:57:38
【问题描述】:
我正在使用带有 firebase 存储的 Next.JS SSR,它使用 firebase-admin(getSignedUrl) 在后端加载图像,并在使用 firebase-client (getDownloadUrl) 的浏览器中加载图像。这会导致页面中的图像使用两个生成的 url 加载两次。
有没有办法解决这个问题?
【问题讨论】:
-
我在下面写了一些通用方法。如果这还不足以解决问题,我建议您显示minimal code that reproduces the problem,以便人们可以根据该问题提出建议。
标签: image firebase next.js firebase-admin