Closed smallify-click closed 1 year ago
Same issue here. Were you able to find a solution for it?
If you're self-hosting Dub, feel free to get rid of all instances of the static tweets implementation (on the root page /
and /metatags
). Those are not required for the app itself, I'm just using them for the marketing pages 😄
@steven-tey could you elaborate more details on which part of the source codes should be removed? Cause I don't think it will work, just simply remove those 2 .tsx
files.
Take some time to dig into this problem today, and find the easiest solution is to pass in an empty array to the getTweetsMetadata
function.
For anyone interested, find my patch at https://github.com/tomy0000000/dub/commit/e29f77217cdcd91f3a069e1779f9d1ad81c4740c.
Apologies for the delayed response here! I just pushed up a commit today that would make the repo work even if you don't have any env vars specified (you just wont see the static tweets). Closing this now, sorry for the trouble before y'all!
So I was not able to deploy directly, and after a bit of searching through the issues pages, saw that
getTweet
function is to be blamed , tried removing it and that lead to a million other issues, so I jusr added a new environment variable forTwitter_Bearer_Token
. That fixed the intial issue but now there is some issue with the function that gets twitter media data below I have attached both the build logs.Direct build from dub repo:
After trying to fix the repo