-
Notifications
You must be signed in to change notification settings - Fork 45
refactor: use the traced file copy from OpenNext #282
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🦋 Changeset detectedLatest commit: 19f4c2b The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
commit: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, looks good
Thanks for the review @james-elicx, I'll wait for @dario-piotrowicz to review before I merge this. |
Oops, I merged @james-elicx PR into this one (I forgot it was based on this branch). @dario-piotrowicz you can review the first commit only, thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks very promising! 😄 🥳
I'm halfway through my review, just leaving a partial review 🙂
Nit: I didn't comment on them since there are quite a few, but you're introducing a bunch of join
s that are inconsistent with your convention
packages/cloudflare/src/cli/build/patches/investigated/copy-package-cli-files.ts
Outdated
Show resolved
Hide resolved
packages/cloudflare/src/cli/build/patches/investigated/patch-require.ts
Outdated
Show resolved
Hide resolved
cf08a5c
to
91625b2
Compare
@dario-piotrowicz I integrated your first batch of feedback, thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great to me! 😄 such a nice improvement! 🚀
packages/cloudflare/src/cli/build/patches/to-investigate/wrangler-deps.ts
Outdated
Show resolved
Hide resolved
packages/cloudflare/src/cli/build/patches/to-investigate/patch-find-dir.ts
Outdated
Show resolved
Hide resolved
packages/cloudflare/src/cli/build/patches/to-investigate/inline-next-require.ts
Show resolved
Hide resolved
Co-authored-by: Dario Piotrowicz <dario@cloudflare.com>
Thanks for the reviews @james-elicx and @dario-piotrowicz ! |
fixes #251
relates to #14
Before this PR, the Next compiled output was copied to
.open-next/.next
and some files were used/patched from there.This PR makes sure we always use the files from
.open-next/.server-functions/<fnName>
instead.This allows to simplify a lot of the config object that was used before.