Skip to content
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 --binding for wrangler pages dev #684

Merged
merged 1 commit into from
Mar 24, 2022
Merged

Conversation

GregBrimble
Copy link
Member

Fixes #674.
Fixes #648.

We'd broken this with #581. This reverts that PR, and fixes it slightly differently. Also added an integration test to ensure we don't regress in the future.

@GregBrimble GregBrimble added bug pages Relating to Pages labels Mar 24, 2022
@changeset-bot
Copy link

changeset-bot bot commented Mar 24, 2022

🦋 Changeset detected

Latest commit: d5ce084

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
wrangler Patch

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

@github-actions
Copy link
Contributor

A wrangler prerelease is available for testing. You can install this latest build in your project with:

npm install --save-dev https://prerelease-registry.developers.workers.dev/runs/2034762175/npm-package-wrangler-684

You can reference the automatically updated head of this PR with:

npm install --save-dev https://prerelease-registry.developers.workers.dev/prs/684/npm-package-wrangler-684

Or you can use npx with this latest build directly:

npx https://prerelease-registry.developers.workers.dev/runs/2034762175/npm-package-wrangler-684 dev path/to/script.js

@@ -56,6 +56,16 @@ describe("Pages Functions", () => {
expect(text).toContain("Hello, world!");
});

it("passes environment variables", async () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Confidence! Looks good to me 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pages Relating to Pages
Projects
None yet
2 participants