Pin Point DevLog: Week 1
Pin Point Devlog: A Week of Challenges, Learnings, and Wins
This past week has been a rollercoaster of development, configuration, and overcoming unexpected challenges while working on Pin Point. Here's a breakdown of what went down!
🚀 Kicking Off the Week
We started off strong by fixing up some frontend components and backend configuration. With a solid foundation, I moved on to automating deployments using Azure DevOps Pipelines to deploy both my database and API to the backend.
I initially hosted the frontend as an Azure Static Web App. It was incredibly easy to deploy and worked well right out of the box. However, things quickly took a turn when I started integrating Google Search Console, Google Analytics, and Google AdSense.
🔎 SEO Woes & The Vite Problem
Being a backend developer, I hadn’t given much thought to SEO before. My past frontend work had been on internal tools where SEO doesn't matter. But now, I had to ensure Pin Point was optimized for search engines.
I soon realized that using Vite for a public-facing application was a terrible choice for SEO. I spent quite a bit of time trying to implement static page generation in Vite, but it turned out to be super complicated. So, I decided to research the best frontend framework for an SEO-heavy project.
After reading multiple sources, I discovered that Next.js had everything I needed: server-side rendering (SSR), static site generation (SSG), and built-in SEO optimizations. I bit the bullet and decided to migrate to Next.js while we were still early in development.
🔄 Moving to Next.js
To my surprise, migrating to Next.js wasn't as bad as I expected. That said, I did run into some nasty issues with react-simple-maps and the ZoomableGroup component.
Since Next.js requires pages to be server-rendered, the ZoomableGroup had problems because it required client-side interaction for zooming. This led to constant selection.interrupt errors. After struggling with this for a while, I found a solution: