james-elicx / cf-bindings-proxy

Experimental proxy for interfacing with bindings in projects targeting Cloudflare Pages
MIT License
94 stars 4 forks source link

[Fix] Use UTC for fallback compatibility_date #15

Closed iamvishnusankar closed 1 year ago

iamvishnusankar commented 1 year ago

Error

Proxy fails to run due to compatibility_date conflict.

Solution

Use UTC date values for setting fallback compatibility_date. Otherwise devs on different timezone might encounter weird bugs like this.

โŽ” Starting local server...
โœ˜ [ERROR] Error reloading local server: MiniflareCoreError [ERR_FUTURE_COMPATIBILITY_DATE]: Compatibility date "2023-08-03" is in the future and unsupported
Screenshot 2023-08-03 at 1 32 13 AM
changeset-bot[bot] commented 1 year ago

๐Ÿฆ‹ Changeset detected

Latest commit: 0f05f9ce834128378fc8f3e974f67fb8c35fee0c

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

This PR includes changesets to release 1 package | Name | Type | | ----------------- | ----- | | cf-bindings-proxy | 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[bot] commented 1 year ago

๐Ÿงช A prerelease is available for testing ๐Ÿงช

You can install this latest build in your project with: ```sh npm install --save-dev https://prerelease-registry.ixion-labs.workers.dev/james-elicx/cf-bindings-proxy/runs/5744000305/npm-package-cf-bindings-proxy-15 ``` Or you can immediately run this with `npx`: ```sh npx https://prerelease-registry.ixion-labs.workers.dev/james-elicx/cf-bindings-proxy/runs/5744000305/npm-package-cf-bindings-proxy-15 ```