-
Notifications
You must be signed in to change notification settings - Fork 87
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
fix: generate correct import path when 'src' directory is used and middleware imports wasm module #2583
Merged
pieh
merged 2 commits into
main
from
michalpiechowiak/frp-1279-failed-to-bundle-nextjs-middleware
Sep 6, 2024
Merged
fix: generate correct import path when 'src' directory is used and middleware imports wasm module #2583
pieh
merged 2 commits into
main
from
michalpiechowiak/frp-1279-failed-to-bundle-nextjs-middleware
Sep 6, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pieh
force-pushed
the
michalpiechowiak/frp-1279-failed-to-bundle-nextjs-middleware
branch
from
September 6, 2024 08:13
b5363ea
to
939e2ab
Compare
📊 Package size report 0.01%↑
Unchanged files
🤖 This report was automatically generated by pkg-size-action |
pieh
changed the title
test: add fixture using wasm in middleware in src directory mode
fix: generate correct import path when 'src' directory is used and middleware imports wasm module
Sep 6, 2024
…ddleware imports wasm module
pieh
force-pushed
the
michalpiechowiak/frp-1279-failed-to-bundle-nextjs-middleware
branch
from
September 6, 2024 09:07
ac3b909
to
8613ac7
Compare
serhalp
approved these changes
Sep 6, 2024
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.
Good catch!
pieh
deleted the
michalpiechowiak/frp-1279-failed-to-bundle-nextjs-middleware
branch
September 6, 2024 13:06
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Fixes cases of bundling middleware edge function when
src
directory is used and middleware is using WASMTests
Adding test case failing without any logic changes (new fixture -
wasm-src
is almost copy ofwasm
, except for putting middleware, app and pages undersrc
directory).https://github.com/netlify/next-runtime/actions/runs/10734892318/job/29771032475?pr=2583#step:12:208 shows failure without any logic changes in runtime
Relevant links (GitHub issues, etc.) or a picture of cute animal
Fixes https://linear.app/netlify/issue/FRP-1279/failed-to-bundle-nextjs-middleware