Skip to content

codingshot/linktree-bos

Repository files navigation

BOS Linktree

Easily deploy a linktree of your profile on the SocialDB (bos) - updates when you add information from any gateway

Deploy with Vercel

Video Tutorial

https://www.youtube.com/watch?v=a8ULNp1q2uQ&t=1s

To setup a custom domain on vercel

https://vercel.com/docs/concepts/projects/domains/add-a-domain

Available Themes

  • default
  • dark
  • gold
  • blossom
  • vibrant
  • aqua
  • neon
  • vintage
  • eclectic

Setup & Development

Initialize repo:

pnpm i

Start development version:

cp .env.example .env
pnpm dev

The entry component is LinktreeBOS and it's located at /src/components/polygon/index.tsx

It loads the ndcplug.near/widget/Linktree.Main BOS component. The source can be found here.

Deployment

This is a Next.js app and a fork of NEAR Discovery gateway app.

For static exports just run next build and upload the build files to your hosting provider. More info here.

For Vercel, Cloudflare or others that supports a Next app just connect the repo and follow the deploy steps from the dashboards.

More info on Next.js deployments here.

Running with docker

docker build -t linktree-bos .
docker run -p 3000:3000 linktree-bos