erik / strava-heatmap-proxy

Make Strava premium heatmap tiles available for use anywhere
GNU General Public License v3.0
14 stars 12 forks source link

README doesn't capture all first time setup steps #1

Closed erik closed 3 years ago

erik commented 3 years ago

@chen-ye ran into issues with STRAVA_ID not being defined. Seems there's a circular dependency in trying to deploy a worker which references a nonexistent kv secret.

qbsho commented 3 years ago

is there a solution for that?

qbsho commented 3 years ago

Also the set account_id is missing in the init setup

erik commented 3 years ago

@xxseabxx I think if you go to the settings page for your worker on dash.cloudflare.com and manually create the STRAVA_ID and STRAVA_COOKIES environment variables in the UI it should work.

Here's the bug report on the wrangler project with a workaround (using globalThis.STRAVA_ID): https://github.com/cloudflare/wrangler/issues/1418