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

update cloudflare worker to serve donate-button.js with optional version param #58

Closed
wants to merge 4 commits into from

Conversation

osdiab
Copy link
Contributor

@osdiab osdiab commented Feb 1, 2021

Closes #50
Closes #56

This serves the bundle from /donate-button.js, as specified in the cloudflare-worker README.md which is also updated in this PR. Let me know what you think!

we will need to push teh cloudflare worker after landing this (can implement #33 later); also if we bump major versions we will need to update this as well.

it also removes support for forwarding other query params; we don't use any right now so i wanted to make it a little less complicated.

@osdiab osdiab requested review from jake-nz and markulrich February 1, 2021 09:07
@vercel
Copy link

vercel bot commented Feb 1, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/p22/every-month/qtr7uh61h
✅ Preview: https://every-month-git-osdiab-new-version-system.p22.vercel.app

@@ -205,7 +205,7 @@ You have to pass a javascript object to configure what we should display in the
You should pass this options previous initialization of the widget. Also you can change them in runtime. Example:
```js
<script>
// Ensure that the script was fully loaded before do this
// Ensure that the script was fully loaded before do this
Copy link
Contributor Author

Choose a reason for hiding this comment

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

we can give an example of that too later!

@osdiab osdiab mentioned this pull request Feb 1, 2021
@osdiab
Copy link
Contributor Author

osdiab commented Feb 3, 2021

I'm gonna close this, this worker is a bit too complicated and can't achieve what we want at the moment for reasons in #50

@osdiab osdiab closed this Feb 3, 2021
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.

Decide how we want versioning via script embed to work
1 participant