a quick loglib starter that you can deploy.
- clone this repo and run
pnpm i
to install dependencies. - change .env.example to .env and fill in the required env variables
- migrate your database with
pnpm prisma migrate
orpnpm prisma db push
- You can now deploy but if you're deploying to platforms other than vercel you need to setup location resolver for your server. Read more
- Now go to your project where you want to track and put loglib url in the
LOGLIB_URL
orNEXT_PUBLIC_LOGLIB_URL
env variable. - Install the loglib tracker in
pnpm i @loglib/tracker
- Follow the instructions in the doc to setup the tracker.