a quick loglib starter that you can deploy.
- clone this repo and run
pnpm ito install dependencies. - change .env.example to .env and fill in the required env variables
- migrate your database with
pnpm prisma migrateorpnpm 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_URLorNEXT_PUBLIC_LOGLIB_URLenv variable. - Install the loglib tracker in
pnpm i @loglib/tracker - Follow the instructions in the doc to setup the tracker.