-
Notifications
You must be signed in to change notification settings - Fork 147
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
refactor(cloudflare): enable using bunlded middleware #798
Conversation
|
commit: |
Coverage Report
File Coverage
|
@@ -94,6 +94,7 @@ export async function createMiddleware( | |||
outfile: path.join(options.buildDir, "middleware.mjs"), | |||
middlewareInfo: edgeMiddlewareInfo, | |||
options, | |||
overrides: config.default.override, |
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.
Is this really needed here ?
It should use the default override provided by the default function itself
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.
Would that cause any issue?
It's here so that the other change in this PR can see the cloudflare wrapper
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.
Ho right, it should be a no-op in this case
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.
LGTM
@@ -94,6 +94,7 @@ export async function createMiddleware( | |||
outfile: path.join(options.buildDir, "middleware.mjs"), | |||
middlewareInfo: edgeMiddlewareInfo, | |||
options, | |||
overrides: config.default.override, |
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.
Ho right, it should be a no-op in this case
Thanks Nico! |
No description provided.