spencerwooo / substats

( `д′) how many followers do i have? how many!
https://substats.swo.moe
MIT License
813 stars 56 forks source link

fix: Instagram API strikes #34

Closed ArvinZJC closed 2 years ago

ArvinZJC commented 2 years ago

There are 2 necessary changes required:

  1. Additional environment variables IG_EMAIL and IG_PWD: an Instagram account disabling two-factor authentication is required.
  2. KV namespace configuration: see the relevant docs. One way is to use the command wrangler kv:namespace create "KV" --preview and add the console output as follows to the file wrangler.toml
kv_namespaces = [
    { binding = "KV", id = "XXX", preview_id = "XXX" }
]

Please note that binding must have the value KV.

vercel[bot] commented 2 years ago

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/spencerwoo/substats/C2YgyZfkVF5xaXzwnfFtKf7sPCrR
✅ Preview: https://substats-git-fork-arvinzjc-master-spencerwoo.vercel.app

ArvinZJC commented 2 years ago

Sorry, mate! I forgot to remove debugging lines.🤯