Closed juraj98 closed 1 week ago
Latest commit: 9e5d41607a37dce715b79ae39997cb22420a8030
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another 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 | Sep 25, 2024 8:00am |
The pull request introduces enhancements to the withUt
function in the packages/uploadthing/src/tw.ts
file, focusing on improving module resolution by updating the require.resolve
function. This adjustment involves incorporating an options object with a paths
property for more flexible module resolution. Additionally, several next-env.d.ts
files across examples have been updated to reflect new documentation URLs for TypeScript configuration in Next.js, ensuring clarity and accuracy. A new markdown file documenting a patch for the "uploadthing" functionality has also been added.
Files | Change Summary |
---|---|
packages/uploadthing/src/tw.ts | Modified the withUt function to improve module resolution with an updated require.resolve function. |
examples/minimal-appdir/next-env.d.ts | Updated comment to change TypeScript configuration URL for Next.js documentation. |
examples/minimal-pagedir/next-env.d.ts | Updated comment to change TypeScript configuration URL for Next.js documentation. |
examples/profile-picture/next-env.d.ts | Updated comment to change TypeScript configuration URL for Next.js documentation. |
examples/with-novel/next-env.d.ts | Updated comment to change TypeScript configuration URL for Next.js documentation. |
examples/with-react-image-crop/next-env.d.ts | Updated comment to change TypeScript configuration URL for Next.js documentation. |
examples/with-serveractions/next-env.d.ts | Updated comment to change TypeScript configuration URL for Next.js documentation. |
examples/with-tailwindcss/next-env.d.ts | Updated comment to change TypeScript configuration URL for Next.js documentation. |
.changeset/shiny-singers-live.md | Introduced a new markdown file documenting a patch for the "uploadthing" functionality for monorepo compatibility. |
withUt
function for module resolution in the main PR.withUt
function, indicating a direct connection to the changes made in the main PR regarding the withUt
function's operation.uploadRouter
, which is relevant to the changes made in the main PR regarding the withUt
function and its integration with UploadThing.📚 documentation
In the code where rabbits play,
A patch was made, hip-hip-hooray!
With paths aligned, the modules cheer,
In monorepos, they have no fear.
So hop along, let changes flow,
WithwithUt
, the features grow! 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Second attempt at fixing #975. I believe this should work. Tested in solidstart in monorepo, and outside of monorepo.
I hope this does what I think it does, but the idea is to add current working directory via
process.cwd()
to pathsrequire.resolve
looks for.Summary by CodeRabbit
withUt
feature, improving its functionality in monorepo environments.uploadthing
functionality, focusing on compatibility within monorepos.