Skip to content

Conversation

@whummer
Copy link
Member

@whummer whummer commented Nov 23, 2024

This PR contains a few fixes to make the Miniflare extension compatible with the latest version of wrangler, and with LocalStack 4.0:

  • pin wrangler version to fix hanging miniflare invocations (with the latest version, the invocation to the wrangler dev server in the LS container hangs indefinitely, and we're not receiving a response)
  • remove installation of miniflare npm package, as the dev mode is now natively integrated into wrangler directly
  • fix encoding headers for invocation responses

@whummer whummer requested a review from HarshCasper as a code owner November 23, 2024 16:33
cmd = [
wrangler_bin,
"dev",
"--experimental-local",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

deprecated argument / no longer required ...


# install npm package
run(["npm", "install", "--prefix", target_dir, "wrangler"])
run(["npm", "install", "--prefix", target_dir, "@miniflare/tre"])
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No longer required to install miniflare separately - now fully integrated into the wrangler CLI

@whummer whummer merged commit 9ef83b6 into main Nov 23, 2024
2 checks passed
@whummer whummer deleted the miniflare-fix branch November 23, 2024 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants