Your cart is currently empty!
Work Log: Settings Up Google Analytics Properly on Next.js 13+
Note*** You are better off using Vercel Analytics as the setup is 10x easier. Compose concerns Compose concerns means to break it up into components rather than writing all of your script tags hard coded onto the app/layout.tsx page. Use the third party library from Next. The Next.js third party library provides a ready made…
Enforcing paywalls for next.js 13+ (app dir) with Stripe and Clerk.
In order to have a good paywall we NEED to: 1. Make settings page or other viewable asset so users can see their tier level. 2. Show users a paywall when they attempt to access business logic above their tier. 3. Easily upgrade. Difficulty in implementing paywalls This is a bit more complicated than the…
Using Clerk metadata to manage Stripe payments
Okay, so once a webhook fires from the checkout we will send the user’s payment info to Clerk metadata. Segregate dev vs. prod concerns. Make the same product but on the test and prod side. Also make your prod and your dev .env values reflect a dev or prod instance. Use a test card number…
12.20.2024 – Start Dev Work Session Commands
bash bash bash bash If you’re working on a feature branch, you might also want to make sure it’s up to date with the main branch: bash Delete all the local branches which aren’t in the repo anymore. Delete stale branches Then you will have to delete the local stale branches. Then find the stale…
Proposal: Markdown CLI CMS
Ideally we would use Frontmatter for the metadata. So it’ll be Markdown CLI. We would use contentlayer for schema validation. But then we would query all of this as one project. Then the CLI, check out one branch of it and then this Branch would be by default which you can just open it. Own…
Ubuntu Setup, MoLogic – 03.11.2024
Download Ubuntu and Install on machine. Download Ubuntu, install onto my machine preferably a Thinkpad with or other cheap laptop with USB-C and great Linux support. The installation is a minimal installation. Run apt update and apt upgrade These two commands will bring your repos which you rely on up to date so no* errant…
Quick Error Fix: libsql not parsing it’s files within node_modules
Next.js with Turso, when building we may run into a parsing error which would be: A “band-aid” solution to this is to change your next.config.js to parse the parse the files. A more permanent solution is to change the way and location which you are instantiating drizzle, see in this GitHub comment. Change the imports…
Setting Up Turso with Next.js and Prisma
There are two ways which you can use Turso, locally and through a connection Locally: Once you run, npx prisma generate, your dev.db file should be created and you’re ready for local development. Through a connection (Turso’s db) In order to do it through a connection we need to install the Turso CLI. Installing the…
Transferring Domains from AWS to Vercel
Although DNS records take a while, from my experience working with Vercel if you do it right it should transfer within 30 minutes. Set the name server: ns1.vercel-dns.com ns2.vercel-dns.com But what record type would it be? For figuring out nameservers within Route 53, this forum thread the is good. A part of this video is…
cbud.app – PDF Creation with PDF-Lib ; Creating Tests; Systematizing a Prisma PDF – Thu 13 Jun 2024 -Mon 15 Jul 2024
Contractor Buddy Work Notes – Part 5 Start: Thu 13 Jun 2024 01:54:42 PM CDT The project from now on is going to be focused on Test Driven Development. Okay, so I am working on, going to back the schedule page where I will be modifying the modal by writing a test first to determine…