CFCaleb Farukiincalebfaruki.me·Mar 17, 2024 · 1 min readNextJS recipe: Tracking 404s with Plausible and NextJS App RouterBy default, all pages are statically rendered. If you add any backend or middleware logic to your NextJS page, it will be rendered as a server component. Plausible Analytics requires access to the window object to track 404 events. So create a client...00
CFCaleb Farukiincalebfaruki.me·Jan 4, 2024 · 3 min readTerraform recipe: domain-level redirects using CloudflareIf you work for an organization of a sufficient size with strong brand recognition, you may encounter the problem of needing to buy any domain names remotely similar to your canonical domain name. A minor benefit is that visitors can make mistakes ty...00
CFCaleb Farukiincalebfaruki.me·Dec 30, 2023 · 8 min readTerraform surgery: safely rename resources without destroying themHave you ever run into this scenario while renaming a resource in your terraform code? Plan: 1 to add, 0 to change, 1 to destroy. But you didn't add a new resource. And there's still data in your S3 bucket. Destroying the bucket would far from ideal...00