Minor Changes
-
#705
a919d5a
Thanks @juliusmarminge! - feat: add client headers optionthis primarily allows you to authenticate the client when your server is deployed separate from your client:
import { genUploader } from "uploadthing/client"; const uploadFiles = genUploader<OurFileRouter>({ url: "https://my-server.com", }); uploadFiles("endpoint", { headers: async () => { const token = await getToken(); return { Authorization: `Bearer ${token}` }; }, });
Patch Changes
-
#691
92e0b59
Thanks @ahkhanjani! - fix: Slightly better server error messages -
#699
398866b
Thanks @juliusmarminge! - fix(types): FileEsque resolved to any if undici was not in project -
#694
5f5a1ea
Thanks @markflorkowski! - fix: CustomId should be optional in middleware -
#696
8773859
Thanks @juliusmarminge! - fix(tw plugin): support turbopack