feat: async task pipeline for media and llm workflows
这个提交包含在:
@@ -37,4 +37,16 @@ describe("storage fallback", () => {
|
||||
url: "/uploads/videos/test/sample.webm",
|
||||
});
|
||||
});
|
||||
|
||||
it("builds externally accessible URLs for local assets", async () => {
|
||||
process.env.APP_PUBLIC_BASE_URL = "https://te.hao.work/";
|
||||
const { toExternalAssetUrl } = await import("./storage");
|
||||
|
||||
expect(toExternalAssetUrl("/uploads/videos/test/sample.webm")).toBe(
|
||||
"https://te.hao.work/uploads/videos/test/sample.webm"
|
||||
);
|
||||
expect(toExternalAssetUrl("https://cdn.example.com/demo.jpg")).toBe(
|
||||
"https://cdn.example.com/demo.jpg"
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
在新工单中引用
屏蔽一个用户