Closed juraj98 closed 1 month ago
Latest commit: 2d109ecc7ddb6004c2ff085bce39137ae58cc4bd
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
docs-uploadthing | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Oct 16, 2024 8:14am |
This pull request introduces a comprehensive guide for setting up a Tanstack/Start project with UploadThing. It covers the installation of necessary packages, configuration of environment variables, and creation of a FileRouter for file uploads. The documentation includes metadata exports, warnings about obtaining an UploadThing token, and detailed examples for implementing UploadThing components and styles, including Tailwind CSS integration.
File Path | Change Summary |
---|---|
docs/src/app/(docs)/getting-started/tanstack-start/page.mdx | Enhanced documentation for setting up a Tanstack/Start project with UploadThing, including installation instructions, environment variable setup, and FileRouter creation. Added metadata export and UploadRouter type. |
examples/minimal-tanstack-start/app/client.tsx | Added TypeScript reference directive for Vinxi types. |
examples/minimal-tanstack-start/app/routes/__root.tsx | Modified CSS import statement for @uploadthing/react to resolve TypeScript error suppression. |
examples/minimal-tanstack-start/app/routes/api/uploadthing.ts | Updated Route export to wrap handlers in an arrow function, allowing explicit request handling. |
examples/minimal-tanstack-start/app/ssr.tsx | Introduced TypeScript reference directive for vinxi/types/server and modified export statement. |
examples/minimal-tanstack-start/package.json | Updated versions of several dependencies and added a new dependency for @vitejs/plugin-react . |
examples/minimal-tanstack-start/tsconfig.json | Added "strictNullChecks": true to enhance type safety in TypeScript. |
UploadButton
and UploadDropzone
components in the Tanstack/Start documentation, which is relevant to the changes made in the main PR regarding the FileRouter and component exports.🐰 In the garden where the uploads flow,
A guide was crafted, now we know!
With UploadThing, our files take flight,
Setting up is now a delight!
So hop along, and join the fun,
With every upload, we’ve just begun! 🌼
Docs:
ChangedReverted because behavior was changed in #1017api/uploadthing.ts
to pass correct object intoreq
.// @ts-expect-error
when importing CSS from?url
pathOther:
Summary by CodeRabbit
Summary by CodeRabbit
UPLOADTHING_TOKEN
.package.json
for improved compatibility and features.