heyxyz / hey

Hey is a decentralized and permissionless social media app built with Lens Protocol ๐ŸŒฟ
https://hey.xyz
GNU Affero General Public License v3.0
22.96k stars 1.51k forks source link

Redesign Hey infra to support any machines #4452

Open bigint opened 6 months ago

bigint commented 6 months ago

Deliverables

bigint commented 6 months ago

/bounty $150

algora-pbc[bot] commented 6 months ago

๐Ÿ’Ž $150 bounty created by hey ๐Ÿ™‹ If you start working on this, comment /attempt #4452 along with your implementation plan ๐Ÿ‘‰ To claim this bounty, submit a pull request that includes the text /claim #4452 somewhere in its body ๐Ÿ“ Before proceeding, please make sure you can receive payouts in your country ๐Ÿ’ต Payment arrives in your account 2-5 days after the bounty is rewarded ๐Ÿ’ฏ You keep 100% of the bounty award ๐Ÿ™ Thank you for contributing to heyxyz/hey!

๐Ÿ‘‰ Add a bounty โ€ข Share on socials

Attempt Started (GMT+0) Solution
๐Ÿ”ด @ezhil56x Dec 30, 2023, 8:38:20 AM WIP
๐ŸŸข @Raushankumar-prog Mar 4, 2024, 10:00:05 AM WIP
ezhil56x commented 6 months ago

@bigint Can I work on this? /attempt #4452

Options
Rutik7066 commented 6 months ago

@ezhil56x i was trying to work on this project but was unable to set it up. og and api works fine but not web output of pnpm run dev

pnpm run dev

> hey@3.0.4-beta dev /home/bot/Desktop/op/hey
> turbo run dev --parallel

โ€ข Packages in scope: @hey/abis, @hey/api, @hey/config, @hey/data, @hey/image-cropper, @hey/lens, @hey/lib, @hey/og, @hey/types, @hey/ui, @hey/web
โ€ข Running dev in 11 packages
โ€ข Remote caching disabled
@hey/og:dev: cache bypass, force executing eda5d50d3eb892f4
@hey/web:dev: cache bypass, force executing e2658fcc8b0c7d2b
@hey/api:dev: cache bypass, force executing 786db3e15ce8b291
@hey/web:dev: 
@hey/web:dev: > @hey/web@0.0.0 dev /home/bot/Desktop/op/hey/apps/web
@hey/web:dev: > next dev --port 4783
@hey/web:dev: 
@hey/og:dev: 
@hey/og:dev: > @hey/og@0.0.0 dev /home/bot/Desktop/op/hey/apps/og
@hey/og:dev: > next dev --port 4785
@hey/og:dev: 
@hey/api:dev: 
@hey/api:dev: > @hey/api@0.0.0 dev /home/bot/Desktop/op/hey/apps/api
@hey/api:dev: > nodemon -w src -x tsx src/server.ts
@hey/api:dev: 
@hey/api:dev: [nodemon] 3.0.2
@hey/api:dev: [nodemon] to restart at any time, enter `rs`
@hey/api:dev: [nodemon] watching path(s): src/**/*
@hey/api:dev: [nodemon] watching extensions: ts,json
@hey/api:dev: [nodemon] starting `tsx src/server.ts`
@hey/og:dev:    โ–ฒ Next.js 14.0.4
@hey/og:dev:    - Local:        http://localhost:4785
@hey/og:dev: 
@hey/web:dev:    โ–ฒ Next.js 14.0.4
@hey/web:dev:    - Local:        http://localhost:4783
@hey/web:dev:    - Experiments (use at your own risk):
@hey/web:dev:      ยท scrollRestoration
@hey/web:dev: 
@hey/web:dev: `destination` does not start with `/`, `http://`, or `https://` for route {"destination":"undefined/u/:match*","has":[{"key":"user-agent","type":"header","value":".*(bot|telegram|baidu|bing|yandex|iframely|whatsapp|facebook).*"}],"source":"/u/:match*"}
@hey/web:dev: 
@hey/web:dev: `destination` does not start with `/`, `http://`, or `https://` for route {"destination":"undefined/posts/:match*","has":[{"key":"user-agent","type":"header","value":".*(bot|telegram|baidu|bing|yandex|iframely|whatsapp|facebook).*"}],"source":"/posts/:match*"}
@hey/web:dev: 
@hey/web:dev: 
@hey/web:dev: Error: Invalid rewrites found
@hey/web:dev: 
@hey/api:dev: 3:39:33 PM [vite-express] Running in development mode
@hey/api:dev: 3:39:34 PM [vite-express] Using Vite to resolve the config file
@hey/api:dev: Server is listening on port 4784...
@hey/og:dev:  โœ“ Ready in 13.7s
bigint commented 6 months ago

@Rutik7066 do you have NEXT_PUBLIC_OG_URL configured on your .env file on web?

Rutik7066 commented 6 months ago

No, I don't have any env configuration

bigint commented 6 months ago
NEXT_PUBLIC_IS_PRODUCTION=false
NEXT_PUBLIC_LENS_NETWORK="mainnet" # mainnet, testnet, staging
NEXT_PUBLIC_OG_URL="http://localhost:4785"

add these ๐Ÿ™‡๐Ÿผ

Rutik7066 commented 6 months ago
NEXT_PUBLIC_IS_PRODUCTION=false
NEXT_PUBLIC_LENS_NETWORK="mainnet" # mainnet, testnet, staging
NEXT_PUBLIC_OG_URL="http://localhost:4785"

add these ๐Ÿ™‡๐Ÿผ

Working now ๐Ÿ‘

vinfinity7 commented 6 months ago

@bigint is this still in progress or may i try to make a shell script as youve commented earlier

Raushankumar-prog commented 4 months ago

/attempt #4452

ezhil56x commented 4 months ago

@Raushankumar-prog

This has been completed and is in wait for other works that are yet to be completed in hey.xyz